Ok well I'm looking to write a script that will grab certain data from a database within a while statement. The only hitch is that I need to automate variable naming.
For example:
Let's assume the following records are in the calc table:
Name merged
Harry 0
Jeff 7000
Chris 323
Jeffrey 7000
while (mysql_fetch_array("SELECT * FROM calc WHERE merged != 0")) {
In this while statment I need the variables to be named according to their merged value.
Eg. $merged_record_7000 = somedata
$merged_record_323 = somedata
Is there a way to write a script that will automaticaly name the variable based on an idea like this? I'm sure it's a simple solution, but one I can't think of off the top of my head.