random spaces
Posted: Tue Feb 15, 2005 5:02 pm
here is my code, i have tracked it down to somthing wrong with this. The problem is that the table is like 7 lines down from the top of the page and i can not figure out why. can anyone figure out why the table shows so far down on the page?
ps i use <table id='forums'> many times and this is the only occurence of it so i dont think it has to do with the css.
Code: Select all
<table id="forums">
<tr><th colspan="10">Memeber List</th></tr>
<tr><th>Username</th><th>Email Address</th><th>Title</th><th>Join Date</th><th>Validated</th><th>Access Level</th><th>Posts</th></tr>
';
$query = mysql_query("SELECT * FROM users ORDER BY uid DESC");
while ($info = mysql_fetch_assoc($query)){
$access_level = $infoї'access_level'];
$validate = $infoї'validate'];
echo '<br />';
echo '<tr><td><a href="profile.php?user='.$infoї'username'].'">'.$infoї'username'].'</a></td><td>';
if (isset($_SESSIONї'username'])){
if ($infoї'show_email'] == '1'){
echo "<a href='mailto:".$infoї'email']."'><img src='img/email.gif'></a>";
}elseif($infoї'show_email'] == '0'){
echo 'User wishes to not show their e-mail';
}
}elseif(!isset($_SESSIONї'username'])){
echo 'You must be logged in to send users E-mails';
}
echo'</td><td>'.$infoї'title'].'</td><td>'.$infoї'joindate'].'</td><td>';
echo($infoї'validate'] == 1 ? 'Yes' : 'No');
echo '</td><td>';
if ($validate == "0"){
echo 'awaiting validation';
}elseif ($access_level == "0"){
echo 'banned';
}elseif ($access_level == "1"){
echo 'member';
}elseif ($access_level == "2"){
echo 'admin';
}elseif ($access_level == "3"){
echo 'master';
}elseif ($access_level == "4"){
echo 'owner';
}
echo '</td>';
echo '<td>'.$infoї'postcount'].'</td>';
echo '</tr>';
}
echo '</table>';