Re: get value

From: Date: Mon, 06 Aug 2001 20:25:07 +0000
Subject: Re: get value
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61480@lists.php.net to get a copy of this message
$data=mysql_fetch_row($result); $count=$data[0]; That's it! On Mon, 6 Aug 2001, Jeremy Morano wrote: > hi,,, > > can someone tell me how to access the value of count? please? > ---------------------------------------------------------------------------- > --------- > $db = @mysql_select_db($db_name, $connection) or die("Couldn't select > database."); > > $sql = "SELECT count(*) > FROM $table_name, company > Where company.uid = user.companyUid and company.company = '$PHP_AUTH_USER' > "; > > $result = @mysql_query($sql,$connection) or die("Couldn't execute query."); > ---------------------------------------------------------------------------- > ---------- > > > >

« previous php.general (#61480) next »