Page 1 of 1

PHP warnings

Posted: Wed May 21, 2003 11:09 am
by floh
Hi there!
I've uploaded my already finished project work, developed on linux-apache server to a client-commercial server and all I can see now are various warnings where PHP-based statements should appear... can anybody help me with that? I got no root rights on the server, so I can't change the ini. file via ssh... also redeveloping my codes is rather unfavourable... thanx for your help
floh

Posted: Wed May 21, 2003 12:00 pm
by twigletmac
What kind of warnings?

Mac

Posted: Fri May 23, 2003 5:52 am
by floh
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /hardbcbi/www.hardbulls.com/verwaltung/team/list.php on line 55


as I said, it worked perfectly on my devoloping server, and I found out that the client server has warnings turned on in it's php.ini and I can't change it via ssh, because I got no root....

Posted: Fri May 23, 2003 6:14 am
by twigletmac
Even if you turned error reporting off it wouldn't do much good as the error is indicating there is something wrong with your connection to the database server, the selection of the database to use or the query being used.

Is the database setup on the live server in exactly the same way as it is on the development server?

You probably need to add some error handling to the database connection and querying functions so that you can work out what exactly is causing the error and fix it.

Mac