Jump to content

Recommended Posts

Posted

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?

 

Posted

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?

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...