This starts by adding first result to client1 then adds to client2 and client3. The variable name is changing easch time due to count set on $m.
The variable name is set using braces ${client.$m}
1 2 3 4 5 6 7 8 9 |
while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $m=$i+1; ${client.$m} = $row['client']; ${client.$m.camp} = stripslashes($row['campaign']); $i++; } |