Welcome! Log In Create A New Profile

Advanced

mysql querry error message

Posted by 37024892 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
mysql querry error message
October 06, 2013 06:13PM
Hi

What does this error message mean
mysql_fetch_array() expects parameter 1 to be resource, boolean given

i googled any possible answers but cannot find a solution.

please help

D
Re: mysql querry error message
October 06, 2013 07:43PM
paste the query code that generates the error... perhaps then we can help . . .
avatar Re: mysql querry error message
October 06, 2013 08:10PM
Your SQL query has failed and returned "false".

There is most probably a syntax error in your SQL statement.
Re: mysql querry error message
October 07, 2013 08:53AM
Hi

This is the code that qives me an error
$query = "SELECT * FROM 'fixtures'";
$result = mysql_query($query) or die("Query failed: " .mysql_error());
echo '<table border="1"><th>Date</th><th>Fixtures</th><th>Venue</th>';
while ($row = mysql_fetch_array($result)) {
echo '<tr>
<td>'. $row['date'] .'</td>
<td><a href="fixtures_public.php? id='. $row['fixture_id'] .'">Gaza Club vs '. $row['opponents'] .'</a></td>
<td>'. $row['venue'] .'</td>
</tr>';
}
echo "</table>";
avatar Re: mysql querry error message
October 07, 2013 09:41AM
You don't need the single quotes around 'fixtures'.

Variables within single quotes are not interpreted.
Re: mysql querry error message
October 07, 2013 12:35PM
yes the issue is those single quotes... leave them out or use the the little backslanted quotes to the right of your "1" key
Sorry, only registered users may post in this forum.

Click here to login