【问题标题】:Echo the Count output PHP, PostGresEcho the Count 输出 PHP, PostGres
【发布时间】:2014-05-08 05:33:53
【问题描述】:

如何获取此查询的输出并将其存储在变量中?

$result = $conn->prepare("SELECT count('No_of_wins') from \"Records\" ");
$result->execute();

所以我可以在页面的某处回显它。我使用了 PHP、PostgreSQL 和 PDO。

【问题讨论】:

    标签: php mysql postgresql pdo


    【解决方案1】:
    $result = $conn->prepare("SELECT count('No_of_wins') from \"Records\" ");
    $count = $result->execute();
    
    echo($count);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-11
      • 1970-01-01
      • 2010-12-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多