Php Insert To Db Tutorial
Insert, update and delete operations are much easier to execute than selects as they simply return a true or false value depending on whether or not they succeeded.
// Delete: if (!mysql_query('delete from customers where email = "noddy@cars.com"')){ die('Could not delete customer'); } // Update: if (!mysql_query('update customers set gender = "m" where email = "noddy@cars.com"')){ die('Could not update customer record'); }
