Jump to content

displaying a certain number of items....


pgsjoe

Recommended Posts

so I'm already using this....
[code]  $result = @mysql_query('SELECT * FROM `vince` WHERE `display` = "yes" GROUP BY showdate ASC, pk ASC');
if (!$result) {
  exit('<p>Error performing query: ' .
      mysql_error() . '</p>');
}

while ($row = mysql_fetch_array($result)) {
[/code]

to pull from my database. But I only want to return the first 3 results by date. How? Thanks in advance.
Link to comment
https://forums.phpfreaks.com/topic/17088-displaying-a-certain-number-of-items/
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.