php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53944 count function
Submitted: 2011-02-07 00:05 UTC Modified: 2011-02-07 02:47 UTC
From: gholaybani at yahoo dot com Assigned:
Status: Not a bug Package: *Database Functions
PHP Version: 5.3.5 OS: win xp-win 7-linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gholaybani at yahoo dot com
New email:
PHP Version: OS:

 

 [2011-02-07 00:05 UTC] gholaybani at yahoo dot com
Description:
------------
hi
i have a problem when using count function in php
when i want count records with this function,always my result is one
sample
select count(*) from tablename returns one
but its returns true answers in mysql software
if this is a bug ?
php version is 5.3.5
thanks a lot


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-07 02:47 UTC] dtajchreber@php.net
-Status: Open +Status: Bogus
 [2011-02-07 02:47 UTC] dtajchreber@php.net
Use mysql_num_rows() or mysql_affected_rows()

php.net/mysql_num_rows
php.net/mysql_affected_rows
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 10 20:01:24 2020 UTC