Re: Help me learn! with an explanation of these two functions.

From: Date: Thu, 07 Nov 2002 09:50:54 +0000
Subject: Re: Help me learn! with an explanation of these two functions.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123129@lists.php.net to get a copy of this message
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. */

« previous php.general (#123129) next »