PDA

View Full Version : In need of some help


Daniel
12-09-2005, 11:57 PM
I'm just begining my studies in PHP, so I'm in need of some help.

Below is the coding for part of my members.php page, the part that the error is appearing on.
<?
ob_start();
include("config.php");
if (!$_GET[user])
{
$getuser = mysql_query("SELECT * from users order by id asc");
while ($user = mysql_fetch_array($getuser))
{
// gets all the users information.
echo ("<html>
<head>
<title>ViberVille.com - Member List</title>
<style>
<!--
body{
margin: 0;
}

.sides{
border-left: 1px dotted #888888;
border-right: 1px dotted #888888;
border-top: 0;
border-bottom: 0;
}
-->
</style>

</head>
<body>

<table width=\"450\" height=\"100%\" align=\"center\" cellspacing=\"0\" cellpadding=\"0\" class=\"sides\">
<tr><td align=\"center\" valign=\"center\">

<font size=\"1\" face=\"Verdana\">
<b>ViberVille.com - Member List</b>
<br />
<br />
<a href=\"members.php?user=$user[username]\">$user[username]</a><br />
<br /><br />
<a href=\"login.php\">Back</a>
</font>
</td>
</tr>
</table>
</body>
</html>");


When I do this I only get one user on the member list, instead of all of them.