php查询mysql问题

$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;

请问大神这个是哪儿出问题了

深山小童
浏览 944回答 3
3回答

一朵大白天

问题描述不明确 ~ Eson小博客
打开App,查看更多内容
随时随地看视频慕课网APP