Hope someone can help me with this.
I just started learning how to program with php (about a month ago), so pls. bear with me. So far, i've made a simple retrieval of my database (a list of names). With each name as a LINK to display the details of that name.
Expand|Select|Wrap|Line Numbers
- if (mysql_num_rows($result) > 0)
- {
- while($row = mysql_fetch_row($result))
- {
- echo "<a href=dummy.php>$row[1]</a>",', '.$row[2].'<br/>';
- }
- }
I used href to set the link on. Temporarily, i'm using a dummy.php file to link to when i click a name on the list. What i really wanted to happen was to display the full detail of that name when i click on one of the names.
I understand that the table (that has all the names and their details) is already open as i am already retrieving the names. I just want to be able to click on any of the names and display it's detail. I hope I didn't sound redundant just want my case to be understood better.
Can someone pls. show me how to do that?
Thanks,
LEARNING