Hi ich habe folgendes problem ich bekomme meine Userliste einfach nicht Alphabet aufgelistet vieleicht hatt einer von euch eine idee wie der script auschenen musste!
Danke im voraus.
PHP-Code:
<?
if (isset($user)) {
?>
<table class="outer" border="0" cellspacing="1" width="100%" background="">
<tr>
<th height="1"><div align="center">.: Web-Chat24 :.</div></th>
</tr>
</table>
<table class="outer" border="0" cellspacing="1" width="100%" height="1">
<tr>
<td height="1" valign="top" colspan="7"> <p align="center"><img border="0" src="../images/bg/members.jpg" width="400" height="60"></td>
</tr class="row2">
<tr class="row2">
<td height="1" valign="top" colspan="7"></td>
</tr class="row2">
<tr class="row2">
<td height="10" align="center" valign="top"><B>Nickname</B></td>
<td height="10" align="center" valign="top"><B>Email</B></td>
<td height="10" align="center" valign="top"><B>Homepage</B></td>
<td height="10" align="center" valign="top"><B>PN</B></td>
<td align="center" valign="top"><B>Registrierdatum</B></td>
<td height="10" align="center" valign="top"><B>Beiträge</B></td>
</tr class="row2">
<tr class="row2">
<td height="1" valign="top" colspan="7"></td>
</tr class="row2">
<tr class="row2">
<td height="1" valign="top" colspan="7"></td>
</tr class="row2">
<tr class="row2">
<td height="1" valign="top" colspan="7"></td>
</tr class="row2">
<?
$config['max'] = 14;
$l_id = @mysql_connect($sql_server, $sql_user, $sql_passwort);
if(!$l_id) {
echo "Es konnte keine Datenbankverbindung hergestellt werden.";
} else {
$s_res = @mysql_select_db($sql_db, $l_id);
if(!$s_res) {
echo "Die Datenbank konnte nicht ausgewählt werden.";
} else {
$tmp_count = 0;
if(!isset($_GET['page']) || !is_numeric($_GET['page'])) $cur_page = 0;
else $cur_page = $_GET['page'];
$result = mysql_query("SELECT * FROM `cebb_user` ORDER BY `id` ASC LIMIT ".$cur_page.", ".$config['max'], $l_id);
$count_all = mysql_num_rows(mysql_query("SELECT * FROM `cebb_user`", $l_id));
while ( $row = mysql_fetch_object($result) ) {
if($row->EMail != "") $email = "<A href=\"mailto:".$row->EMail."\"><img src=\"../images/members/email.gif\" border=\"0\" alt=\"E-Mail an ".$row->Username." senden\" title=\"E-Mail an ".$row->Username." senden\" /></a>";
else $email = "";
if($row->Homepage != "") $homepage = "<A href=$row->Homepage target=\"_blank\"><img src=\"../images/members/www.gif\" border=\"0\" alt=\"Homepage von ".$row->Username."\" title=\"Homepage von ".$row->Username."\" /></a>";
else $homepage = "";
?>
<tr>
<td align="left" valign="top"> <img src="../images/forum/thread.gif"> <A href="../user/profile.php?user=<? echo($row->Username); ?>" target=main><? echo($row->Username); ?></a>
</td>
<td align="center"> <? if ($adminz=="1") { echo($email); }?> </td>
<td align="center"> <? echo($homepage); ?> </td>
<td align="center"> <A href="../pn/newmail.php?an=<? echo($row->Username); ?>" target=main><img src="../images/members/pns.gif" border="0" alt="PN an <? echo($row->Username); ?> senden" title="PN an <? echo($row->Username); ?> senden" /></a></td>
<td align="center"> <? echo($row->Datum); ?></td>
<td align="center"> <? echo($row->Beitraege); ?> </td>
</tr>
<tr class="row2">
<td height="1" valign="top" colspan="7"></td>
</tr class="row2">
<?
$tmp_count++;
}
if($cur_page >= 1) {
if($cur_page >= $config['max']) $back = $cur_page - $config['max'];
else $back = 0;
$go_back = "<a href=\"?page=".$back."\"><< Zurück</a>";
}
if($cur_page + $tmp_count < $count_all) {
$forward = $cur_page + $config['max'];
$go_forward = "<a href=\"?page=".$forward."\">Weiter >></a>";
}
?></td></tr class="row2">
<tr class="row2">
<td height="1" valign="top" colspan="7"></td>
</tr class="row2">
<td height="7" valign="top" colspan="7"> <p align="center"> <font face="tahoma" size="2"><? echo $go_back." ".$go_forward; ?></b>
</td>
</tr class="row2">
<tr class="row2">
<td height="1" valign="top" colspan="7"></td>
</tr class="row2">
</table class="outer">
</div>
<?
}
mysql_close($l_id);
}
include("../forum/footer.inc.php");
?>
Kommentar