Kev0121 Posted March 8, 2009 Share Posted March 8, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/148479-error-again/ Share on other sites More sharing options...
Mchl Posted March 8, 2009 Share Posted March 8, 2009 Did you connect to database? Quote Link to comment https://forums.phpfreaks.com/topic/148479-error-again/#findComment-779649 Share on other sites More sharing options...
ram4nd Posted March 8, 2009 Share Posted March 8, 2009 There is something wrong with this: $q = "SELECT * FROM `tests`"; Quote Link to comment https://forums.phpfreaks.com/topic/148479-error-again/#findComment-779650 Share on other sites More sharing options...
Kev0121 Posted March 8, 2009 Author Share Posted March 8, 2009 lol thanks i typed in tests instead of test! thanks alot Kevin Quote Link to comment https://forums.phpfreaks.com/topic/148479-error-again/#findComment-779653 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.