PHP warnings

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
floh
Forum Newbie
Posts: 2
Joined: Wed May 21, 2003 11:09 am
Location: austria

PHP warnings

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

What kind of warnings?

Mac
floh
Forum Newbie
Posts: 2
Joined: Wed May 21, 2003 11:09 am
Location: austria

Post 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....
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Post Reply