php-db | 2001041
Date: 04/05/01
- Next message: boclair: "[PHP-DB] Forms : Validating user input is integer"
- Previous message: Phil Jackson: "Re: [PHP-DB] Varible insert"
- In reply to: Mark Roedel: "RE: [PHP-DB] mysql_result()"
- Next in thread: Andrew Hill: "RE: [PHP-DB] mysql_result()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Looks reasonable enough....
LeTourneau - hmmm - Longview, Texas?
Phil J.
Mark Roedel wrote:
> > -----Original Message-----
> > From: Jordan Elver [mailto:jjelver <email protected>]
> > Sent: Wednesday, April 04, 2001 10:46 AM
> > To: PHP Database Mailing List; PHP General Mailing List
> > Subject: [PHP-DB] mysql_result()
> >
> >
> > If I knnow that a query will only retrun one row, can I do
> > this (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');
>
> Looks reasonable to me...what happens when you try it?
>
> ---
> Mark Roedel (roedelm <email protected>) || "There cannot be a crisis next week.
> Systems Programmer / WebMaster || My schedule is already full."
> LeTourneau University || -- Henry Kissinger
>
> --
> 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>
-- 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: boclair: "[PHP-DB] Forms : Validating user input is integer"
- Previous message: Phil Jackson: "Re: [PHP-DB] Varible insert"
- In reply to: Mark Roedel: "RE: [PHP-DB] mysql_result()"
- Next in thread: Andrew Hill: "RE: [PHP-DB] mysql_result()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

