I currently have a query where I delete a record on call, however after other consideration I would rather just update the record on a is_deleted basis so that I can always have a record of whats been in the system, and or undelete that record at a later time.
My current query:
$delete=mysql_query("DELETE FROM pin_status_types WHERE pinstatus_id='$delete'");
Instead of deleteing the record, i would rather change a value in a column from 0 to 1.
0 = false (not deleted) 1 = true (is deleted)
Correct me if I wrong, but wouldnt I do (Note; I added table. and column. to for note purposes.) something like below to achieve what I am after?
$delete=mysql_query("UPDATE table.pin_status_types SET column.is_deleted = 1 WHERE pinstatus_id='$delete'");