|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-01-24 10:35 UTC] arni at linux dot is
Hello, I wrote a PHP program that uses MYSQL_INSERT_ID() function. I begun writing the program under PHP3, but once the program was finished I upgraded my system to PHP4-b3. Once the upgrade was complete I tried to use the program. But it wouldn't work because of a error MYSQL_INSERT_ID() caused. The error is the following: Warning: Supplied argument is not a valid MySQL-Link resource in phpfile.php3 on line 35 I don't know what causes this, my code works fine in PHP3, but this error only occures when I try to use it under PHP4-b3. Could this be a BUG? :-) Regards. Arni Arent Web Developer Firmanet ehf. arni@firmanet.is http://www.firmanet.is appel @ EFnet PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 10:00:01 2026 UTC |
Here are the 2 lines that matter: $querymid = @mysql_query("insert into tempmail (userid,toaddress,cc,bcc,subject,priority,body,signature) values ('$uid','$to','$cc','$bcc','$subject','$priority','$body','$signature')"); $mailid = mysql_insert_id($querymid);