Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/sites//public_html/siteprotocode.php on line 24 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/sites//public_html/siteprotocode.php on line 23 I can't see anything obvious as the error. $result = mysql_query("select * from `data` where `key`='$key'") or die(mysql_error()) ĮDIT: Here is the error I'm getting when I run this page on my localhost. In the php file that creates the database, I have tried var_dump(mysql_num_rows($result)) just before this code and I'm getting back 0, so I know that it's reading the sql. I don't see any errors, so I'm thinking it must be something stupid like a typo or something, but it shouldn't be that. I want to create a database table with data pulled from a third party source and written to the database using PHP and MySQL, but the following code doesn't seem to be getting anything into the database. Download Free Book "Advanced Engineering Mathematics" By Rk Jain Srk Iyengar PdfĬategory:University of Delhi Press booksQ:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |