[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
$
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
>
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
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