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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 06:01:27 2025 UTC