I'd like to have access to $lastID when calling raw
Is there a way to do this?
public static $lastID;
public function raw($sql){
if(!$result = mysql_query($sql)){
throw new Exception("Could not perform query: " .mysql_error());
}
self::$lastID = mysql_insert_id();
return($result);
}
Edit: it is a class member, it is static.