1
$result = $db->("SELECT `count` FROM playerCount");
while($row = mysql_fetch_assoc($result)) {
echo $row['count'];
}
我如何转换线: 而($行= mysql_fetch_assoc($结果)){如何将mysql_fetch_assoc转换为PDO?
到PDO?
谢谢。
$result = $db->("SELECT `count` FROM playerCount");
while($row = mysql_fetch_assoc($result)) {
echo $row['count'];
}
我如何转换线: 而($行= mysql_fetch_assoc($结果)){如何将mysql_fetch_assoc转换为PDO?
到PDO?
谢谢。
$stmt = $db->query(...);
while($row = $stmt->fetch(PDO::FETCH_ASSOC)) {