string Sql_insert_id(string $query)
$Sql->Query_inject("INSERT INTO ".PREFIX."shoutbox (login, user_id, contents, timestamp) VALUES ('pseudo', '-1', 'Message', '" . time() . "')", __LINE__, __FILE__); $last_msg_id = $Sql->Sql_insert_id("SELECT MAX(id) FROM ".PREFIX."shoutbox"); echo $last_msg_id; //Affiche l'identifiant du dernier message posté.