PHP redirect depending on user ID
#1

So basically I'm stumped. I'm making a member list for my own website which i already have the usernames and last login displays done. I'm just having troubles with having their username being a redirect to their profile. I can't figure out how to get the page to redirect to their ID.

My Code:

Код:
  <td align="center"><font face="Tahoma" size="2"><?php

include_once "connect_to_mysql.php";

$sql = mysql_query("SELECT * FROM members ORDER BY id asc") or die(mysql_error('No Records Found'));

while($info = mysql_fetch_array( $sql ))
{

print "<a href='member_profile.php?id=$id'>" . $info['username'] . "<br /></a>";
//the $id is what I need help with!

}

?>
</td>
Reply


Messages In This Thread
PHP redirect depending on user ID - by nLs - 21.11.2012, 07:51
Re: PHP redirect depending on user ID - by FarSe. - 21.11.2012, 08:05
Re: PHP redirect depending on user ID - by nLs - 21.11.2012, 08:08
Re: PHP redirect depending on user ID - by Vince - 21.11.2012, 09:39
Re: PHP redirect depending on user ID - by nLs - 21.11.2012, 16:27

Forum Jump:


Users browsing this thread: 2 Guest(s)