How To form Variables...

From: Date: Mon, 18 Dec 2000 01:06:06 +0000
Subject: How To form Variables...
Groups: php.general 
Request: Send a blank email to php-general+get-30799@lists.php.net to get a copy of this message
Hola: How would one form variables such that the variable "$record$num " translates to $record1 $record2 $record3 etc... My code thus far : $num=1 while ($num< 9 ) $id++; $query6 = "select * from class_factors where ID='$id'"; $result6 = MYSQL_QUERY($query6); while ($row = mysql_fetch_array ($result6)) { for ($i=0; $i < $num_fields; $i++) { $rate_basis =$row[2]; $id = $row[22]; $record$num .= $row [$i] . ","; } } $jnum++; } Thanks, Christopher C. M. Allen

« previous php.general (#30799) next »