Total noob, having trouble using a variable to loop through row.
I'd like to print the contents of the column header_en. So I:
Set $lang to en, connect to db and SELECT *
Then:
while($row = mysql_fetch_array( $result )) {
echo "<h3>Headline is: $row['header_$lang]</h3>";
echo "<p>Author: $row[author]</p>";
}
I've been searching for hours, tried concatenating around the $lang variable, all sorts of stuff... no luck. My syntax-fu isn't all that strong yet.
Any pointers?