Jump to content

mysql_fetch_assoc():


leequalls

Recommended Posts

Not sure what I am doing wrong:

 

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /public_html/lq/index.php on line 12

 

$schedule = "LQ";
include('/public_html/en/header_staff.php'); 
include("connect.php");

$page = $_SERVER["SERVER_NAME"];
$who = explode(".", $page);

$sql = "select * from rp_staff WHERE schedule = $schedule";
$rpstaff = mysql_query($sql);

while ($row = mysql_fetch_assoc($rpstaff)) {
$alt = $row['dj'];
$name = $row['name'];
$city = $row['city'];
$state = $row['state'];
$country = $row['country'];
$artists = $row['artists'];
$about = $row['about'];
$genre = $row['genrev'];
$position = $row['position'];
}

Link to comment
https://forums.phpfreaks.com/topic/216744-mysql_fetch_assoc/
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.