The sql_query() function executes the query passed to it as a parameter. It is the least portable of the SQL instruction command set; it should therefore be avoided wherever possible in preference to the other more specific SQL API functions.
It accepts 3 parameters:
-
$insis the SQL query, -
$serveur, -
$option.
Usage:
$res = sql_query('SELECT * FROM spip_meta');
// but we would prefer you used this instead:
$res = sql_select('*', 'spip_meta');