【发布时间】:2012-12-16 12:35:49
【问题描述】:
我正在尝试使用 PHP/PDO 学习分页。
$limit = 20;
$sth = $conn->prepare("SELECT * FROM directory WHERE user_active != ''");
$sth->execute(array(':county' => $county));
$c = 1;
while ($row = $sth->fetch(PDO::FETCH_ASSOC)) {
echo 'Resutls will be here';
$c++;
}
我不确定下一步该做什么,有没有人可以参考,或者可以为我解释这个过程?
谢谢
【问题讨论】:
-
我认为这个问题被否决没有任何问题。无论谁投反对票,他都应该给我们一个理由