Sup? im making a website & im completely stuck LOL.. im not much of a coder well im not really at all more of a designer.. anyways back on point.. i cant figure out how to show all of my registered users in tables on my admin page, all the rest im thinking about doing to the page is simple for me i just wanna show all usernames in my 'users' table. Thank you very much. Jay ~
Place this at the top $username=$_SESSION['username']; Code (markup): Then this is for the users. <?php $plist= mysql_query("select * from `users` order by `id`"); while ($top = mysql_fetch_array($plist)) { print "<tr><td><a href=profile.php?viewuser=$top[username]>$top[username]</a></td>; } ?> Code (markup):
Ty for the speedy reply, but it doesnt seem to work. the error might be a simple one i dunno.. here it is Parse error: syntax error, unexpected $end in /home/krzownz/public_html/site_management/edit_user.php on line 14 Heres the code: <? session_start(); include "connect/db.php"; include "connect/functions.php"; $username=$_SESSION['username']; $plist= mysql_query("select * from `users` order by `id`"); while ($top = mysql_fetch_array($plist)) { print "<tr><td><a href=profile.php?viewuser=$top[username]>$top[username]</a></td>; } ?> PHP: Thanks