Re: [PHP-DB] using a variable as values in an array

2003-03-31 Thread Charles Kline
=> $thevalue){ $defaultValues['ib_article'][$thevalue] = 'true'; } I'm not sure if the indices line up exactly with what you had in mind, but I'm confident you can play with it to get what you want. -Original Message- From: Charles Kline [mailto:[EMAIL

RE: [PHP-DB] using a variable as values in an array

2003-03-31 Thread Jennifer Goodie
in the loop > I have no idea what is being pulled from where, so I can't really give > a > good example > > -----Original Message- > From: Charles Kline [mailto:[EMAIL PROTECTED] > Sent: Monday, March 31, 2003 1:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] usi

Re: [PHP-DB] using a variable as values in an array

2003-03-31 Thread Charles Kline
--- From: Charles Kline [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:25 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] using a variable as values in an array I am trying to build an array from the results of a query on a mySQL table. I am using a loop to create this string in a vari

RE: [PHP-DB] using a variable as values in an array

2003-03-31 Thread Jennifer Goodie
bject: [PHP-DB] using a variable as values in an array I am trying to build an array from the results of a query on a mySQL table. I am using a loop to create this string in a variable $mystring: '30'=>true, '20'=>true I then need to use it like this: $defaul

[PHP-DB] using a variable as values in an array

2003-03-31 Thread Charles Kline
I am trying to build an array from the results of a query on a mySQL table. I am using a loop to create this string in a variable $mystring: '30'=>true, '20'=>true I then need to use it like this: $defaultValues['ib_article'] = array($mystring); It isn't working. I am sure there is a better