Jump to content

Archived

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

pgsjoe

displaying a certain number of items....

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.

Share this post


Link to post
Share on other sites

×

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.