Jump to content
MakeWebGames

Problem with ORDER BY RAND()


Rory_M

Recommended Posts

Can anyone help me with this, every time i echo it out it just returns "Array".

 

$sql = mysql_query("SELECT `W_Name` FROM `weapons` ORDER BY RAND() LIMIT 1");
$found_sql = mysql_fetch_array($sql);
echo $found_sql;

 

Thanks for the help in advance. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...