Beispiel #1
0
 public static function update_book($uid, $bookId)
 {
     $sql = 'update `librarybook` set `state`=1 where `uid`=? and `bookid`=? and `state`=0';
     $ret = Helper_Db::excute($sql, array($uid, $bookId));
     return $ret;
 }