DB::storage delete method

From: Date: Wed, 23 May 2001 10:54:40 +0000
Subject: DB::storage delete method
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-155@lists.php.net to get a copy of this message
since i am using the storage class quite extensive i also had to add the method delete, here is the basic implementation, this is just the very first version, i know there is quite some to do, but for now it works without special features ---------------------------------------------- function delete() { $query = 'DELETE FROM ' . $this->_table .' WHERE '. $this->_makeWhere(); $stmt = $this->_dbh->prepare($query); $res = $this->_dbh->execute($stmt, &$params); if (DB::isError($res)) { return $res; } return DB_OK; } // end of function ---------------------------------------------- Wolfram Kriesing

« previous php.pear.general (#155) next »