Re: [PHP] Put output of mysql into an Array

2003-11-01 Thread Filip de Waard
On Sat, 2003-11-01 at 12:26, Frank Keessen wrote: > O.K. > > When i do this: > > // open database connection > $connection = mysql_connect($host, $user, $pass) or die ("Unable to > connect!"); > // select database > mysql_select_db($db) or die ("Unable to select database!"); > > $query = "SELEC

Re: [PHP] Put output of mysql into an Array

2003-11-01 Thread Frank Keessen
O.K. When i do this: To: "Frank Keessen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, November 01, 2003 11:59 AM Subject: Re: [PHP] Put output of mysql into an Array > Frank Keessen wrote: > > > Hi, > > > > Can somebody help me

Re: [PHP] Put output of mysql into an Array

2003-11-01 Thread Burhan Khalid
Frank Keessen wrote: Hi, Can somebody help me with the following? I want to have the outcome of this: $query = "SELECT markhow, COUNT(*) FROM prospects GROUP BY markhow"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); Put into an array like this (for example

[PHP] Put output of mysql into an Array

2003-11-01 Thread Frank Keessen
Hi, Can somebody help me with the following? I want to have the outcome of this: $query = "SELECT markhow, COUNT(*) FROM prospects GROUP BY markhow"; $result = mysql_query($query) or die ("Error in query: $query. " . mysql_error()); Put into an array like this (for example); array(