It seems the best way to reset an MSSQL table row's columns except it's ID, is to use the UPDATE
statement, and then SET
all of the columns except the ID
column to NULL
, or a space
character.
Here is the query I am going to use:
$sql = "UPDATE table SET col1=' ', col2=' ', col3=' ' WHERE id = '$idvar'";