public function updateUserFbId($token, $uid) { $user = array("fb_uid" => $uid); $sql = SqlUtils::update(self::TABLE_USERS, $user, "token = '{$token}'"); $this->handle->exec($sql); return $token; }
public function editBook($book = array()) { if (count($book) == 0) { return 0; } $bookId = $book['id']; if ($bookId == 0) { return 0; } $sql = SqlUtils::update(self::TABLE_BOOKS, $book, "id = '{$bookId}'"); $this->handle->exec($sql); return $bookId; }