Is it possible to get the query that it's being tried to be executed on PHP?
Here is the code i'm trying:
public static function executeInsertQuery($sqlQuery)
{
$dbTable = mysql_query($sqlQuery, self::$_dbLink);
if($dbTable === false){
Models_Error::throwException("Connection to table failed.", 'database');
}
return null;
}
How can I validate that to be always an Insert into query?