Hi Guys,
I am having trouble with my links, i am currently trying to use my $_SESSION; to automatically link it directly to the specific user page. However I always have this error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\ThesisDB\DisplayThisUser.php on line 21
<?php
session_start();
function do_menu() {
print "
<h5>[Status: User | <a href=\"logout.php\">
<font size=-5>Logout</font></a> ]</h5>
<a href=\"member-index.php\">Home</a> |
<a href=\"logout.php\">Logout</a> |
<a href=\"DisplayThisUser.php?ID_NO=";$_SESSION['SESS_MEMBER_ID'];
print "
\">Display My Info</a> |
<a href=\"Plate_1.php\">Ishihara Test</a> |
<a href=\"Upd2.php?ID_NO=1\">Edit My Info</a>
<HR>
";
}
?>
i also have passed it using $ID_NO = $_SESSION;
but also same result. Is there any solution to this one?