RON_ron Posted September 29, 2010 Share Posted September 29, 2010 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); ?> Quote Link to comment https://forums.phpfreaks.com/topic/214763-limit/ Share on other sites More sharing options...
mikosiko Posted September 29, 2010 Share Posted September 29, 2010 The LIMIT command doesn't seem to work. Please help. you are no explaining why do you think is not working.... Quote Link to comment https://forums.phpfreaks.com/topic/214763-limit/#findComment-1117352 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.