How do i increment a variable name
i'm trying something like this:
$x=0
do {
$variable= "$"."row_recordset".$x++."['name']";
echo $variable;
} while ($x < 5);
so that i can retrieve from a database the field:
echo $row_recordset1 ['name'];
echo $row_recordset2 ['name'];
and so on.
thanks!