mysql_insert_id(), mysql_affected_rows()

Have a weird issue - mysql_insert_id(), mysql_affected_rows() doesnt work without DB resource link passed to them directly. The only way I can get the functions which use the above methods to work is by defining the global var on top of the function (i.e. global $MySQL) and passing the link resource to each of the mysql calls (e.g. mysql_insert_id($MySQL->link), mysql_affected_rows($MySQL->link) )

Any idea why is it happening? Something misconfigured on the host?

Cheers, George

Quote · 10 May 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.