php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14106 mysql_insert_id() fails
Submitted: 2001-11-19 04:42 UTC Modified: 2001-11-19 04:44 UTC
From: Henry dot Ristau at fh-stralsund dot de Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.0.6 OS: SuSe Linux 7.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Henry dot Ristau at fh-stralsund dot de
New email:
PHP Version: OS:

 

 [2001-11-19 04:42 UTC] Henry dot Ristau at fh-stralsund dot de
i do something like this:
$result=mysql_query($query, $dblink);
if(! $result) die($query);
$messageid=mysql_insert_id($result);

it worked with older versions of php but fails reporting
"Supplied argument is not a valid MySQL-Link resource" now even if the query is inserted sucessfull.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-19 04:44 UTC] derick@php.net
It still does, but you need to give it a LINK identifier as parameter, and not a MySQL Result identifier.
Script is buggy > bogus
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 10:01:28 2025 UTC