Elivmar Posted June 5, 2007 Share Posted June 5, 2007 I'm writting a guestbook code using PHP and MYSQL and I have a bit of a problem. When the guestbook is displayed in a table it goes in one continuous line across the table and stretching it out instead of staying in the table borders and wrapping around. How would I fix this? Quote Link to comment Share on other sites More sharing options...
joemama718 Posted June 6, 2007 Share Posted June 6, 2007 that seems really bizarre...usually tables are set to wrap by default, as i'm sure you know. could you share the html code you're using and/or a sample sql row? Quote Link to comment Share on other sites More sharing options...
Elivmar Posted June 6, 2007 Author Share Posted June 6, 2007 while($go = mysql_fetch_array($query)) { echo "<table length = '50px' height = '100px' border = '3px' ><tr><td>"; echo $go['name']."~".$go['date']."~".$go['time']; echo "</td></tr><tr length = '200px' height = '100px'><td>".$go['message']."<br></td></tr></table>"; } Obviously when I'm done the table will be a bit more organized but I do things just to test them out first. Quote Link to comment Share on other sites More sharing options...
joemama718 Posted June 6, 2007 Share Posted June 6, 2007 well i don't think theres a length property...its width and height, no? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.