Hey,
Here is my problem friends. I created a dynamic site with PHP last year in school. I learned just enough SQL in the course to finish the project. It worked fine.
Now my host has moved servers, and the code now seems broken. I use an Apache server and MySQL (FovServ) on my PC and the code works fine. On the UNIX hosting server part of the code works, however the reading of the tables gives me basically these warnings rather than the info:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
As said it works fine on my PC, just on the host server it gives me this and I can find no explanation why it suddenly does not work or the meaning of Invalid MySQL result resource?
Any suggestions or can anyone point me in the right direction, SQL was taught to me just as what I needed within my PHP course for this project. My SQL book has not been much help.
Thanks All
Kyle Lamson
Here is my problem friends. I created a dynamic site with PHP last year in school. I learned just enough SQL in the course to finish the project. It worked fine.
Now my host has moved servers, and the code now seems broken. I use an Apache server and MySQL (FovServ) on my PC and the code works fine. On the UNIX hosting server part of the code works, however the reading of the tables gives me basically these warnings rather than the info:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
As said it works fine on my PC, just on the host server it gives me this and I can find no explanation why it suddenly does not work or the meaning of Invalid MySQL result resource?
Any suggestions or can anyone point me in the right direction, SQL was taught to me just as what I needed within my PHP course for this project. My SQL book has not been much help.
Thanks All
Kyle Lamson