Also bei mir zeigt er nur ein Datensatz an, jemand ein Vorschlag? hier ein auszug aus dem php code. Also will alle Datensätze angezeigt bekommen
PHP-Code:
<td width="20" height="16"></td>
<td width="80" align="center" class="bodytext">Username</td>
<td width="100" align="center" class="bodytext">Group</td>
<td width="120" align="center" class="bodytext">Joindate</td>
<td width="140" align="center" class="bodytext">Tagline</td>
<td width="120" align="center" class="bodytext">E-mail</td>
<td width="180" align="center" class="bodytext">Options</td>
</td>
</tr>
<tr>
<td colspan="11" background="images/dots.gif" height="1"></td>
</tr>
<?php
$query = "SELECT id, name, email, DATE_FORMAT(addtime,'%d-%m-%Y %H:%i') AS addtime,
rang, tagline FROM User ORDER BY rang ";
$execq = mysql_query($query) or die($error);
if(mysql_num_rows($execq) == 0)
{
echo"<tr><td colspan=\"11\"> </td></tr>";
echo"<tr><td colspan=\"11\"> </td></tr>";
echo"<tr><td colspan=\"11\" align=\"center\">There are no <b>Users</b> added at this moment!</td></tr>";
}
else{
while ( $User = mysql_fetch_object($execq) )
{
$Username = $User->name;
$Groupname = $User->rang;
$addtime = $User->addtime;
$User_id = $User->id;
$email = $User->email;
$tagline = $User->tagline;
}
}
?>
EDIT:
by TobiaZ: Bitte Regeln lesen und befolgen!
Kommentar