如何计算Phalcon查询返回的行数?

用户名

如何计算mysql查询返回的行数?使用PHP Phalcon Framework ..

我的查询

$result = $connection->query("SELECT * FROM robots ORDER BY name");
我是Geeker

您可以在此处尝试使用此文档

$result = $connection->query("SELECT * FROM robots ORDER BY name");
echo 'There are ', $result->numRows(), ' rows in the resulset';

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章