Jump to content

Error Again!


Kev0121

Recommended Posts

Heres my error

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\tests\index.php on line 15

 

and heres my code

 

<?php
$q = "SELECT * FROM `tests`";
$qinfo = mysql_query($q);


while($post = mysql_fetch_array($qinfo)) {
echo "<div id=\"postinfo\">";
echo $post['title'];
echo "<a hrer=\"edit.php?id=$_GET[id]\">Edit </a>";
echo "</div";
}
?>

 

Thanks

 

Kevin

Link to comment
https://forums.phpfreaks.com/topic/148479-error-again/
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.