I got the following message when trying to do a mysql php query:
Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apa....
Can anyone help offer suggestions?
Here is the code:
$query = "SELECT title, role_name, CONCAT(first_na me, ' ', last_name) AS name FROM actors, roles, movies WHERE actors.act_id = roles.act_id AND roles.movie_id = movies.movie_id AND year > 1999 ORDER BY year;";
$result = @mysql_query ($query);
// Print the results
echo '<table><tr><t d align="left"><b >Movie Title </b></td><td align="left"><b >Role Name </b></td><td align="left"><b >Actor</b></td></tr>';
while ($row = mysql_fetch_arr ay
($result, MYSQL_ASSOC))
Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apa....
Can anyone help offer suggestions?
Here is the code:
$query = "SELECT title, role_name, CONCAT(first_na me, ' ', last_name) AS name FROM actors, roles, movies WHERE actors.act_id = roles.act_id AND roles.movie_id = movies.movie_id AND year > 1999 ORDER BY year;";
$result = @mysql_query ($query);
// Print the results
echo '<table><tr><t d align="left"><b >Movie Title </b></td><td align="left"><b >Role Name </b></td><td align="left"><b >Actor</b></td></tr>';
while ($row = mysql_fetch_arr ay
($result, MYSQL_ASSOC))
Comment