Forum Moderators: coopster
$result = mysql_query("SELECT * FROM cms ORDER BY id desc limit 5");
can I incorporate that command in here too?
[edit] it follows with these commands:
while($row = mysql_fetch_array($result))
echo "<td><br><font class=\"text\">".$row['title'] . ";
[edited by: FnTm at 8:03 am (utc) on Aug. 13, 2007]
$result = mysql_query("SELECT * FROM cms ORDER BY id desc limit 5");
> The easiest thing to do is to change * to the field names you have. Anyway, you are better off having the field names instead for several reasons.
If you want to keep it that way, you can use the substr function in PHP code itself.
$title = substr($title, 0, 30);
Habtom