Re: [PHP-DB] Extracting values from an array (I think)

2003-11-24 Thread John W. Holmes
[EMAIL PROTECTED] wrote: But the variable variable thing does not seem to be working, either with or without the $ for the 'counter' inside the brackets. ${$sLabel_ . $counter} = $row['short_label']; $counter++; ${'sLabel_' . $count} = $row['short_label']; Any reason you're not just doing $

Re: [PHP-DB] Extracting values from an array (I think)

2003-11-24 Thread dpgirago
I'm getting the correct output from the following query: > $selectLabelQuery = "SELECT short_label > FROM config > ORDER BY meter_num"; > > $resultSelectLabelQuery = mysql_query($selectLabelQuery) or >

Re: [PHP-DB] Extracting values from an array (I think)

2003-11-24 Thread dpgirago
P-DB] Extracting values from an array (I think) If you have to assign 24 unique variables rather than storing this data in an array, then you could apply some variable variable action. Here is a code sample that assumes you are looping through a result set from a database: query ="SELE

Re: [PHP-DB] Extracting values from an array (I think)

2003-11-24 Thread John Krewson
If you have to assign 24 unique variables rather than storing this data in an array, then you could apply some variable variable action. Here is a code sample that assumes you are looping through a result set from a database: query ="SELECT short_label FROM config ORDER BY meter_num"; $re