In a MySQL table, certain fields are named blah1, blah2, bla3,.... Now after fetching these values in PHP, I want to print them. Instead of doing
echo "$blah1<br>$blah2<br>$blah3<br>...";
I would like to use a for loop. How do I append the variable with a number? The following doesn't work:
for ($i=0; $i < n; $i++) {
echo "$blah[$i]<br>";
}
Thanks