Hi
I have a MySQL table that looks something like this
id venue date
1 London 2006-03-10
2 Paris 2005-02-12
3 New York 1996-12-12
and I need to construct a statement such as
$data = mysql_query("SELECT * FROM table1 WHERE date = '$string'");
while ($info = mysql_fetch_array( $data )){
echo $info['venue'];
}
where $string is either 1996,1997, 1998 ... 2006
I think it has to be done in 2 statements, but I would be guessing
Can anyone help?
As always, thank you!