Elivmar Posted June 5, 2007 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?
joemama718 Posted June 6, 2007 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?
Elivmar Posted June 6, 2007 Author 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.
joemama718 Posted June 6, 2007 Posted June 6, 2007 well i don't think theres a length property...its width and height, no?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now