acuh wenn du (hoffentlich) schon am korrigieren bist:
Verwende nirgends $username sonder imme rnur $_SESSION['username']
Verwende nirgends $username sonder imme rnur $_SESSION['username']
.. $db = mysql_connect("localhost","","");
$res = mysql_db_query("", "select * from users order by userid DESC");
$num = mysql_num_rows($res);
for ($i=0; $i<$num; $i++)
{
$userid = mysql_result($res, $i, "userid");
$username = mysql_result($res, $i, "username");
$usermail = mysql_result($res, $i, "usermail"); ..
<table width="488" height="50">
<tr>
<td></td>
</tr>
</table>
<table width="488">
<tr>
<td width="18%"></td>
<td width="36%"><font size="2">Nick</font></td>
<td width="10%"></td>
<td width="36%"><font size="2">E-mail</font></td>
</tr>
</table>
<table width="488">
<tr>
<td width="20%"></td>
<td width="60%"><img src="img/balken.jpg"></td>
<td width="20%"></td>
</tr>
</table>
<?
$db = mysql_connect("localhost","","");
$res = mysql_db_query("", "select * from users order by userid DESC");
$num = mysql_num_rows($res);
for ($i=0; $i<$num; $i++)
{
$userid = mysql_result($res, $i, "userid");
$username = mysql_result($res, $i, "username");
$usermail = mysql_result($res, $i, "usermail");
$usersession = mysql_result($res, $i, "usersession");
$useron = mysql_result($res, $i, "useron");
$usericq = mysql_result($res, $i, "usericq");
$userland = mysql_result($res, $i, "userland");
$lf = $i + 1;
if (!logged_in()) {
echo" <table width=\"488\">";
echo" <tr>";
echo" <td width=\"18%\"></td>";
echo" <td width=\"15%\"><font size=\"2\">$username</font></td>";
echo" <td width=\"3%\"><img src=\"img/$userland.gif\"> 
<img src=\"http://web.icq.com/whitepages/online?icq=$usericq&img=5\">   <img src=\"img/$useron.jpg\"></td>";
echo" <td width=\"10%\"></td>";
echo" <td width=\"47%\"><a href=\"mailto:$usermail\">$usermail</a></td>";
echo" </tr>";
echo" </table>";
}
else {
echo" <table width=\"488\">";
echo" <tr>";
echo" <td width=\"18%\"></td>";
echo" <td width=\"15%\"><font size=\"2\"><a href=\"front.php?nav=pmsg\">
$username</a></font></td>";
echo" <td width=\"3%\"><img src=\"img/$userland.gif\"> 
<img src=\"http://web.icq.com/whitepages/online?icq=$usericq&img=5\">   <img src=\"img/$useron.jpg\"></td>";
echo" <td width=\"10%\"></td>";
echo" <td width=\"47%\"><a href=\"mailto:$usermail\">$usermail</a></td>";
echo" </tr>";
echo" </table>";
}
}
?>
<?
$db = mysql_connect("localhost","","");
$res = mysql_db_query("", "select * from users order by userid DESC");
$num = mysql_num_rows($res);
<?
$db = mysql_connect("localhost","","");
$res = mysql_db_query("", "select * from users");
$num = mysql_num_rows($res);
<?
$db = mysql_connect("localhost","","");
$res="";
$num="";
$res = mysql_db_query("", "select * from users");
$num = mysql_num_rows($res);
<?
$db = mysql_connect("localhost","","");
$res = mysql_query("", "select * from users");
$num = mysql_num_rows($res);
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /www/htdocs/energize/v1/user/userlist.php on line 24 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /www/htdocs/energize/v1/user/userlist.php on line 25
Comment