RE: [PHP] Help me learn! with an explanation of these two functions.
| From: | Steve Jackson | Date: | Thu, 07 Nov 2002 15:22:19 +0000 |
| Subject: | RE: [PHP] Help me learn! with an explanation of these two functions. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123171@lists.php.net to get a copy of this message | ||
Of course you are correct.
I forgot to remove the $row["orderid"] etc..
I was just testing the function and thought I'd post the code rather
than waste someones time answering me.
However thanks for the help. Much appreciated.
Steve Jackson
Web Developer
Viola Systems Ltd.
http://www.violasystems.com
stephen.jackson@violasystems.com
Mobile +358 50 343 5159
> -----Original Message-----
> From: Jason Wong [mailto:php-general@gremlins.com.hk]
> Sent: 7. marraskuuta 2002 11:51
> To: php-general@lists.php.net
> Subject: Re: [PHP] Help me learn! with an explanation of
> these two functions.
>
>
> On Thursday 07 November 2002 16:28, Steve Jackson wrote:
> > Finally I have it!
>
> <sigh> if this is your final code then you still don't "have it" !
>
> > Cheers to all that helped. I was querying twice when I
> didn't need to
> > and as Jason said not doing anything with the extracted information.
>
> > extract($row);
> You're still not gaining anything by using extract() ...
>
> > if (is_array($row))
> > //print_r($row);
> > {
> > //echo "tests and ";
> > echo $row["orderid"];
> > echo $row["ship_name"];
>
> ... the whole point of using extract() is that instead of using
>
> echo $row['orderid'];
>
> you could simply use:
>
> echo $orderid;
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications
> Development *
>
> /*
> Don't feed the bats tonight.
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>