Re: Help needed after upgrading to PHP4
| From: | @ Edwin | Date: | Mon, 05 Aug 2002 13:55:42 +0000 |
| Subject: | Re: Help needed after upgrading to PHP4 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111205@lists.php.net to get a copy of this message | ||
Or you can use die() like this:
mysql_connect("localhost","login","passwd") or die (mysql_error());
This won't fix the problem but it'll give you something more informative to work on (I think)...
You can also
echo mysql_errno() . ": " . mysql_error();
- E
Hi, you are not connect to database (maybe), check lines with mysql_connect() ... for error. You're may be using @mysql_connect to supress error messages so remove '@'. Tony Burgess wrote:_________________________________________________________________ かわいくて愉快なイラスト満載 MSN キャラクター http://character.msn.co.jp/Hi Everyone, I'm quite new to all this PHP stuff, and was wondering if someone could give me some help with a problem I have. After upgrading from PHP3 I now get the following information displayed Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource I think it may have something to do with the build, perhaps it's made errors whilst trying to build with mySQL. Any help would be much appreciated. -- Tony Burgess-- -- Mirek Novak Anima Publishers CMS development http://www.auto.cz http://www.formule1.cz jabber:mirek@njs.netlab.cz ISEEKYOU:1<one>9<four>9<nine>44<eight> GEsEm:+420603807838 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php