如何获取此查询的输出并将其存储在变量中?
$result = $conn->prepare("SELECT count('No_of_wins') from \"Records\" ");
$result->execute();
所以我可以在页面的某个地方回应它。我使用PHP,PostgreSQL和PDO。
答案 0 :(得分:0)
$result = $conn->prepare("SELECT count('No_of_wins') from \"Records\" ");
$count = $result->execute();
echo($count);