php-db | 2001041
Date: 04/04/01
- Next message: Mark Roedel: "RE: [PHP-DB] mysql_result()"
- Previous message: Patrick Dunford: "[PHP-DB] [BUG?] pg_fetch_array"
- Next in thread: Mark Roedel: "RE: [PHP-DB] mysql_result()"
- Maybe reply: Mark Roedel: "RE: [PHP-DB] mysql_result()"
- Reply: Andrew Hill: "RE: [PHP-DB] mysql_result()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
If I knnow that a query will only retrun one row, can I do thiss (below)
rather than using a while loop for one record?
$id = <email protected>($result, 0, 'id');
$name = <email protected>($result, 0, 'name');
$email = <email protected>($result, 0, 'email');
$address1 = <email protected>($result, 0, 'address1');
$address2 = <email protected>($result, 0, 'address2');
$town_city = <email protected>($result, 0, 'town_city');
$postcode = <email protected>($result, 0, 'postcode');
Cheers,
Jord
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mark Roedel: "RE: [PHP-DB] mysql_result()"
- Previous message: Patrick Dunford: "[PHP-DB] [BUG?] pg_fetch_array"
- Next in thread: Mark Roedel: "RE: [PHP-DB] mysql_result()"
- Maybe reply: Mark Roedel: "RE: [PHP-DB] mysql_result()"
- Reply: Andrew Hill: "RE: [PHP-DB] mysql_result()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

