My code is:
while($myrow = mysql_fetch_row($result))
{for($i = 0; $i < 5; $i++)
$total = "<img src=\"$myrow[option.$i]\">";
}
Basically in my database I have option1 - option10. However what I want to do is ECHO option1 - option10 using one line of code. I was wondering how I would be able to get the number on the end of $myrow[option
I have tried $myrow[option.$i] but I get an error.
Thanks