The sql_updateq() function is used to update content in an SQL table. The content passed to the function is automatically filtered.
Its 6 arguments are the same as for sql_update():
-
$tableis the SQL table in question, -
$expcontains the modifications to be made, -
$where, -
$desc, -
$serveur, -
$option.
It is used as shown below:
sql_updateq('table', array('column' => $value), 'id_table=' . intval($id_table));