Hey all...
I need to put a loop inside an array, but when I try this it won't work. Is it even possible to do this? My code is as follows...
$bar_data=array(
while ($row=mysql_Fetch_assoc($get))
{
$row[name] => 52,
}
);
The error I get is:
Parse error: parse error, unexpected T_WHILE, expecting ')'...
Could anyone help me with this please? Is there another way I could use?
Thanks,
Mike