Re: ARRAY - straightforward question?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: ARRAY - straightforward question?

From: Toby Inkster <usenet200604@tobyinkster.co.uk>
Date: Sun Apr 30 2006 - 23:54:57 CEST

elyob wrote:

> while($row = mysql_fetch_assoc($result)) {
> $data[ $row['longitude'].$row['latitude'] ][] = $row['bizname'];
> }

while($row = mysql_fetch_assoc($result))
  $data[$row['longitude']][$row['latitude']][] = $row['bizname'];

-- 
Toby A Inkster BSc (Hons) ARCS
Contact Me  ~ http://tobyinkster.co.uk/contact
Received on Mon May 1 03:08:07 2006