[PHP-DB] Re: backup of database record before update

2007-10-28 Thread hochprior
count($columns) - 1){ $sql .= ', '; } } $sql .= ' WHERE '.$criteria; #debug($sql); return mysql_query($sql); } Since you pass the $criteria (e.g. 'id = "23"') anyways, you can easily call the record first, and copy it to another table. --

Re: [PHP-DB] Re: backup of database record before update

2007-11-01 Thread hochprior
n a PHP routine? ... -- Kind regards, hochprior -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Re: backup of database record before update

2007-11-01 Thread hochprior
n MySQL query cache on the DB in most cases. And still you would have to rely on one more infrastructure. Just do it the way you like, and I´ll do it my way... ;-) -- Kind regards, hochprior -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php