Skip to content
Advertisement

php a href display data from mysql database and link it to a new page

I have a php & mysql search script which is working, after result displayed users can click below link and it will open a new page and display more mysql info, i am stuck with linking the ahref link ($field2name) to the new page (getprofile.php).

Now the problem is getprofile.php showed nothing and displayed 0 results, however i tried to put static data in getprofile.php it is working properly and can show profile data from mysql, can anyone enlighten me what is missing?

from search page user can click this link:

JavaScript

getprofile.php:

JavaScript

Advertisement

Answer

You are not assigning $field2name in any variable. Moreover your quotes are mismatching and are not forming a well formatted url

JavaScript

now to get the value use $_GET['value']

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement