This is a little strange. I am pulling data from a table that contains articles and trying to display a date from the table along with a short description.
Sounds simple right?
While the data is pulling from the DB just fine, when I display the result on the page, the short description won't wrap inside the <td> where the data is placed.
Here is the code I am using to display:
The field "ShortDescrip" is listed in the table like this:
Field: ShortDescrip
Type: varchar(180)
Now I just assumed (apparently incorrectly) that the text would wrap. I've tried limiting the width through CSS and even applying a width value directly to the <TD>.
Any ideas?
Sounds simple right?
While the data is pulling from the DB just fine, when I display the result on the page, the short description won't wrap inside the <td> where the data is placed.
Here is the code I am using to display:
PHP Code:
while ($row = mysql_fetch_assoc($result)){
print "<h1 class=\"news\">".date("F jS, Y", strtotime($row["DateSummarized"]))."</strong><br>";
print "<p class=\"news\">".$row['ShortDescrip']."</p><br/>";
}
Field: ShortDescrip
Type: varchar(180)
Now I just assumed (apparently incorrectly) that the text would wrap. I've tried limiting the width through CSS and even applying a width value directly to the <TD>.
Any ideas?
Comment