Quote:
Originally Posted by Blaine0002
Thanks for pointing that out, ill fix the © issue, and will look into a vbulletin substitute for mysql_insert_id
|
just seen your reply today

if you use vbulletin subst. you would have to look in class vB_Database_MySQLi
(to be found in file class_core.php)
but the easiest way would be:
PHP Code:
if(function_exists('mysql_insert_id'))
{
mysql_insert_id();
}
else if(function_exists('mysqli_insert_id'))
{
mysqli_insert_id();
}
else
{
print "system error message:xxxxxx";
// because it wont work if the id cannot be inserted..
}