Re: [PHP-DB] extract data from database into an array

2002-07-15 Thread Adam Voigt
$query = mysql_query("SELECT whatever FROM whatever;"); while($row = mysql_fetch_array($query)) $construct[] = $row[whatever]; That will give you an array (construct) with position 0 being the first row, position 1 being the second row, and so on. Adam Voigt [EMAIL PROTECTED] On Mon, 20

Re: [PHP-DB] extract data from database into an array

2002-07-15 Thread chip . wiegand
"Adam Alkins" <[EMAIL PROTECTED]> wrote on 07/13/2002 07:56:46 PM: > > I have a database, all the data is numbers. I want to make a query that > > will extract the data and then make it available in an array, so the > > array is populated 'real-time'. I could just enter the number into an > > ar

Re: [PHP-DB] extract data from database into an array

2002-07-13 Thread Adam Alkins
> I have a database, all the data is numbers. I want to make a query that > will extract the data and then make it available in an array, so the > array is populated 'real-time'. I could just enter the number into an > array manually, but I want to automate the job. I don't know what to > start lo

[PHP-DB] extract data from database into an array

2002-07-13 Thread Chip Wiegand
I have a database, all the data is numbers. I want to make a query that will extract the data and then make it available in an array, so the array is populated 'real-time'. I could just enter the number into an array manually, but I want to automate the job. I don't know what to start looking for,