$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.");
> ----------------------------------------------------------------------------
> ----------
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]