[SOLVED] - Arrays in Arrays from Queries
Posted: Sat Aug 14, 2004 10:22 pm
I have an array $arrMain[] which contains a mysql_fetch_assoc() array.
I've also added other fields from different queries.
But this gives Notice: Array to string conversion in xxx\xxx.php on line xxx
I thought I could get $arrMain['Photo'][$i]['ID'] and $arrMain['Photo'][$i]['Data'] but instead Im getting $arrMain['Photo'][$i]="A" (The first letter in Array (....))
Anyone know how to resolve this ?
Thanks
I've also added other fields from different queries.
Code: Select all
$PhotosRow=mysq_fetch_assoc(....);
$arrMain['Photo'][$i]=$PhotosRow // its in a loopCode: Select all
$PhotosRow is say Array([ID]=>5,[Data]=>xxx)Anyone know how to resolve this ?
Thanks