Ok, so this code works fine. I just need to know how to truncate the $a_row['newsBody'] line. So if its:
"This is a pretty long news article and I need
to make sure it doesn't wrap in the cell"
I need it to look like:
"This is a pretty long news article and I need..."
Know what I mean? Here's the code:
<?php
$data = mysql_query( "SELECT * FROM news" .$orderQuery. " " .$way." LIMIT ".$offset.", ".$limit );
while ( $a_row = mysql_fetch_array( $data ) ) {
?>
<td><? print $a_row['newsTitle']; ?></td>
<td><? print $a_row['newsBody']; ?></td>
And like I said, it prints out just fine, it just wraps the text within the cell. I guess it would be cool to show the full text in a rollover, but I'm guessing that would be javascript.
cheers!
jason