Arrays...

From: Date: Wed, 12 Dec 2001 14:30:47 +0000
Subject: Arrays...
Groups: php.general 
Request: Send a blank email to php-general+get-77441@lists.php.net to get a copy of this message
Hi, im trying to fill a chart with some data. I am using a mysql query: $query = "SELECT serie_tot, COUNT(*) FROM statistik WHERE shooter='mindbash' GROUP BY serie_tot"; $series = mysql_query($query) It returns the results i want, ie value - count value2 - count etc... Now - i am trying to get this data into an array and is using: $data = mysql_fetch_array($series); But that doesn´t work! If i do it manually: $data = array( "value" => 4, "value2" => 2); ...it works like a charm. What´s the difference between these arrays? I would also, very much, appreciate a tip on where i could learn how to master arrays. I am tearing my hair out here. Regards # Daniel Alsén | www.mindbash.com # # d@mindbash.com | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ #

« previous php.general (#77441) next »