Jump to content

[SOLVED] Mysql Problem


xshanelarsonx

Recommended Posts

I'm trying to randomly pick a row from a mysql table and display it's info. I keep getting a error on line 2.

 

$Music="SELECT * from songs ORDER BY RND() LIMIT 1";
$Music_Result=mysql_query($Music);
while ($row=mysql_fetch_array($Music_Result))
{
$SongNameRandom=$row["SongName"];
$FileRandom=$row["File"];
}

Link to comment
https://forums.phpfreaks.com/topic/38102-solved-mysql-problem/
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.