In the process off making an Admin panel to my website i have run into a problem..
I'm trying to do, so that under the "members.php", you can click the image off the person you want to read more about and be directed to his site, via ID... Like member.php?id=1 for the person with the number 1 id in the database... And when you do come to the persons site, how do you make so that you see his info and not someone elses?.. So that you don't see number 2's info under member.php?id=1.. I have tried but so fare, i haven't "cracked the code" ;-)
Hope some off u guys can help!
Members.php:
<?php
include 'admin/include/db.php';
$query = mysql_query("SELECT * FROM members WHERE active = '1' ");
while($rows = mysql_fetch_array($query)) :
$iname = $rows['iname'];
$id = $_GET['id'];
echo "<tr>";
echo "<td align='middle'><br><h3><a href='member.php?id=$id'>$iname</a></h3><br></td>";
echo "<td align='middle'><br><h3><a href='member.php?id=$id'>$iname</a></h3><br></td>";
echo "</tr>";
echo "<tr>";
echo "<td><a href='member.php?id=$id'><img class='center fit' src='billeder/members/standin.jpg' alt='$iname'></a></td>";
echo "<td><a href='member.php?id=$id'><img class='center fit' src='billeder/members/standin.jpg' alt='$iname'></a></td>";
echo "</tr>";
endwhile;
?>