I currently have:
foreach($Opts['img'] as $img)
{
}
I want to add:
foreach($Opts['lnk'] as $lnk)
Which I initially read, to do so just put them as follows:
foreach($Opts['img'] as $img)
{
foreach($Opts['lnk'] as $lnk)
{
}
}
However this duplicates all of the results so I end up with 9 images instead of 3.
Is there a way of getting the info from both array's in the same query? I want to end up with $img showing the image address and $lnk showing the link address.