help with mysql and tables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpbeginner0120
Forum Newbie
Posts: 1
Joined: Sat Aug 25, 2007 1:13 pm

help with mysql and tables

Post by phpbeginner0120 »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


hey everyone hope everythings going well......I just started with php and have been teaching myself....and have now run into a roadblock....heres the problem im creating a product review page and so i have my display tables set to 500px in width....then in the td tags i have the code[color=red]...<?php echo $row["review"];?>[/color]...now when i view it in my browser the data displayed in the tables is not word wrapping so the tables expand to fit the data so i end up with 2000px tables and i mean i have fixed widths but its ignoring that.....is there any way at all to fix that?  here is my table code below....

Code: Select all

<table width="500" border="1" cellspacing="0" cellpadding="0">
  <tr> 
    <td colspan="2"><?php echo $row["make"]." ".$row["model"];?></td>
  </tr>
  <tr> 
    <td width="152"><?php echo $row["poster"]."<br>".$row["Date"];?></td>
    <td width="348"> <?php echo $cmt ?></td>
  </tr>
</table>
any help would be greatly appreciated thanks.


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply