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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 30 22:01:28 2024 UTC