Jump to content

w0rtel

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

w0rtel's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I want to get a random row from my table. And i use this: $sql = "SELECT * FROM random ORDER BY RAND() LIMIT 1"; $result = mysql_query($sql); $object = mysql_fetch_object($result); $rid = $object->rid; But I always get the first row. Never a different one.. Why? (MySQL v. MySQL 3.23.54-nt) Thnx 4 the help..
×
×
  • 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.