sql_replace_multi() function is used to insert or replace several rows (which have the same schema) for an SQL table in a single operation. The values are automatically filtered against SQL injection attacks. It is necessary that the columns of inserted pairs contain the primary key(s) for that table.
It is recommended to use the specific functions
sql_updateq() instead of this function to be more precise, at least where such is possible.
It has the same 5 parameters as sql_replace :
$tableis the SQL table in question,
$couplesis a table of column/value pairs to be modified,
It is used as shown below: