Jump to content

LIMIT


RON_ron

Recommended Posts

The LIMIT command doesn't seem to work. Please help.

 

$query = "SELECT subjectz, DATE_FORMAT(timestampz, '%d-%m-%Y') AS timez, Newsz, linksz FROM news_homez ORDER BY timestampz DESC LIMIT 0,3";
$results = mysql_query($query);

$returnS="";
while($line = mysql_fetch_array($results))
{
$returnS.= $line["subjectz"].",,".$line["timez"].",,".$line["Newsz"].",,".$line["linksz"].",,,";
}
echo $returnS;
mysql_close($link);
?>

Link to comment
https://forums.phpfreaks.com/topic/214763-limit/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.