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