Nesd help with php and coding
I am very new to php and codding i had some help creating this but now i need more help
I am getting this error
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/pealight/domains/pealight.lt/public_html/justinas/duomenys.php on line 119
Can someone please help
Here are my php files and sql file http://www.mediafire.com/?91a6loysdevxv5l
No help needed anymore it was a database problem
The issue is still actually a PHP one; the code needs to be written to deal with the failures of the communication or incorrectly structured requests.
When you write it, you need to check that the connection was established correctly, and make sure the queries are successful when you do execute them. How you write it depends on the control you want. You can be as lazy as using
So in essence, you simply want to make sure that anytime you operate on any external entity such as a file or database to check that the resources are valid before you attempt to do anything with them. Like with a file, you would make sure it is actually opened prior to attempting to read from it, or you would see a similar error where the filehandle isn't a valid resource. Same goes with the db, you want to ensure that the query you have run was successful prior to attempting to read it.
|All times are GMT +1. The time now is 10:19 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.