Re: query_data

From: Date: Sat, 06 Dec 2003 15:02:35 +0000
Subject: Re: query_data
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-172063@lists.php.net to get a copy of this message
On Sat, Dec 06, 2003 at 09:34:24AM -0500, Randy Johnson wrote: > I have a query > > $query="select a,b,c,d,e from table where id='z'"; > $result=mysql_query(); > > $query_data=mysql_fetch_array($result); > > I normally would do this: > > $a=$query_data["a"]; > etc.. > > is there a way to do this is in a loop so I do not have to do all that > typing? use list (http://www.php.net/list) list ($a, $b, $c, $d, $e) = mysql_fetch_row($result); -- zhuravlev alexander u l s t u n o c (zaa@ulstu.ru)

« previous php.general (#172063) next »