Re: Returning only a row count of 1?

From: Date: Fri, 05 Mar 2004 19:42:42 +0000
Subject: Re: Returning only a row count of 1?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179592@lists.php.net to get a copy of this message
On Saturday 06 March 2004 03:40, Alex Hogan wrote: > I have 6 records in this table but using this code; > > $querytotalcount = "SELECT COUNT(*) > > FROM CF_Survey"; > > $resulttotalcount = mssql_query($querytotalcount) or die("Can not execute > query $insert_query. "); > > $totalrows = mssql_num_rows($resulttotalcount); > > I only return a count of 1. Right, and what does that single row *contain* ? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Harp not on that string. -- William Shakespeare, "Henry VI" */

« previous php.general (#179592) next »