brem13 Posted March 24, 2009 Share Posted March 24, 2009 hey, i have a script to check a mysql database and display 'friends' if there are 'confirmed' friends and to display it in a table. after it displays the table it should have the footer at the bottom but it isnt, its to the right of the table and extends the page to the right. (screenshot below) here is the code and i have the table ending but it doenst seem like it ends the table, any help? if ($result3 = mysql_db_query($database, "select * from $table WHERE confirmed = 'Yes'")) { if (mysql_num_rows($result3)) { echo '<font face=tahoma size=3>My Friends</font><br>'; echo '<table align=left width=100%><tr>'; $i = 1; while ($qry = mysql_fetch_array($result2)) { $friend = $qry[username]; $friend2 = strtoupper($friend); echo '<td align=left width=150px><a href=galleries/members/'.$friend2.'><font face=tahoma size=2>'.$friend.'</font></a></td>'; if($i == 4) { echo '</tr><tr>'; $i = 0; // reset counter } $i++; }//end while echo '</tr></table>'; }//end num rows }//end result3 include("footer.php"); i have the same coding style in a bunch of other pages and it displays fine, i dont know what is causing it to do this [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/150932-solved-problem-with-tables-please-help/ Share on other sites More sharing options...
lonewolf217 Posted March 24, 2009 Share Posted March 24, 2009 why did you repost this ? http://www.phpfreaks.com/forums/index.php/topic,244636.0.html Link to comment https://forums.phpfreaks.com/topic/150932-solved-problem-with-tables-please-help/#findComment-792928 Share on other sites More sharing options...
brem13 Posted March 24, 2009 Author Share Posted March 24, 2009 wouldnt let me modify it Link to comment https://forums.phpfreaks.com/topic/150932-solved-problem-with-tables-please-help/#findComment-792934 Share on other sites More sharing options...
Yesideez Posted March 24, 2009 Share Posted March 24, 2009 I suspect you've still got a table open somewhere. If you're using Firefox you can download a very handy add-on called "Web Developer" that adds a row of icons along the top of the browser. https://addons.mozilla.org/en-US/firefox/addon/60 Just use Outline>Outline Tables>Cells That will highlight all your cells so you can see what's going on. Link to comment https://forums.phpfreaks.com/topic/150932-solved-problem-with-tables-please-help/#findComment-792937 Share on other sites More sharing options...
brem13 Posted March 24, 2009 Author Share Posted March 24, 2009 ok, i did that and it looks ok(screenie below) [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/150932-solved-problem-with-tables-please-help/#findComment-792959 Share on other sites More sharing options...
brem13 Posted March 24, 2009 Author Share Posted March 24, 2009 i also took out the </tr> and </table> tags and it looks the same, and i ended the php code and just put it in html and the same thing, any suggestions Link to comment https://forums.phpfreaks.com/topic/150932-solved-problem-with-tables-please-help/#findComment-792972 Share on other sites More sharing options...
brem13 Posted March 24, 2009 Author Share Posted March 24, 2009 ok, fixed it, i changed the table to align=center and it fixed it Link to comment https://forums.phpfreaks.com/topic/150932-solved-problem-with-tables-please-help/#findComment-792974 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.