Hi All,
I have been researching on this forever and can't find an answer.
I need to rename my variable depending on what my counter value is for each total in my query array. For instance I would like a unique Total for each record so I can refer to all the records once I am out of the array. Something like;
while (@RowDetails = $RowDetails_sth->fetchrow_array())
{
$Counter ++
$Total_$Counter = $RowDetails[0]
}
...
print $Total_1
print $Total_2
print $Total_3
etc...
This is not working for me and I totally lost on how to do it. Any help or pointing in the right direction would be much appreciated!
Thanks,
E
I have been researching on this forever and can't find an answer.
I need to rename my variable depending on what my counter value is for each total in my query array. For instance I would like a unique Total for each record so I can refer to all the records once I am out of the array. Something like;
while (@RowDetails = $RowDetails_sth->fetchrow_array())
{
$Counter ++
$Total_$Counter = $RowDetails[0]
}
...
print $Total_1
print $Total_2
print $Total_3
etc...
This is not working for me and I totally lost on how to do it. Any help or pointing in the right direction would be much appreciated!
Thanks,
E