$con?=?new?PDO("mysql:host=localhost;dbname=test",'root','');
$start?=?1;
$rows?=?5;
$sql?=?"select?*?from?users?limit?:start,:rows";
$sth?=?$con->prepare($sql);
$sth->execute(array(':start'=>$start,':rows'=>$rows));
$arr?=?$sth->fetchAll();
print_r($arr);
$con?=?null;請(qǐng)問(wèn)大神這個(gè)是哪兒出問(wèn)題了
添加回答
舉報(bào)
0/150
提交
取消