rowCount() 方法试过好像没用;
下面这个方法也没用$sql = "SELECT COUNT(*) FROM folks";if ($STH = $DBH->query($sql)) { # check the row count if ($STH->fetchColumn() > 0) { # issue a real select here, because there's data! } else { echo "No rows matched the query."; }}
杨魅力
慕无忌1623718
相关分类