How to save a PHP object to a database
Thursday, February 11th, 2010This is an example from a class that deals with user accounts. function save() { if(!$this->id) { ### DUPE PREVENTION $sql = "SELECT id FROM users WHERE username = '" . $this->username . "' LIMIT 1"; $db2 ...
