If you want to actually want the variables $flyertotal, $emailtotal, and $phonetotal, use the line:

${$array[0]."total"} = $row[0];

But as you defined $array, that will actually create the variables $Flyertotal, $Emailtotal, and $Phonetotal (note the caps).


On 2/13/2004 6:10 AM, Bob pilly wrote:
$array[$i].total=$row[0];<-- problem here


so for the above code i would like to create three variable $flyertotal,$emailtotal & $phonetotal

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to