Can anyone help me with this thanks.
Here's my code
$data = mysql_query("SELECT * FROM users WHERE username = '$username'")
or die(mysql_error());
while($info = mysql_fetch_array( $data ))
{
$match_id=$info['week1_match1_id'];
echo $match_id;
}
What I would like is to set the week1 part of the field name to a variable, as this will change each week, etc.. week2, week3
Rather than keep having to change the field name, can I set a variable inside?
example $info['$variable_match1_id'];
Thanks
Jon