$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;請問大神這個是哪兒出問題了
添加回答
舉報
0/150
提交
取消