示例#1
0
文件: Db.php 项目: yang22t/ysu
 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;
 }