gdonald on 09/26/06
Last Edited at 09/26/06 07:49am
function sqlInsertID(){ if( in_array( 'mysql', $GLOBALS[ 'loaded_extensions' ] ) ) { return @mysql_insert_id(); } elseif( in_array( 'mysqli', $GLOBALS[ 'loaded_extensions' ] ) ) { return @mysqli_insert_id( $GLOBALS[ 'dbHandle' ] ); }}
Report this snippet Tweet
Comment:
You need to login to post a comment.