Ciao a tutti, vorrei utilizzare una variabile per where, esempio:

<?php
$dbcnx = mysql_connect('...', '...', '...');
mysql_select_db('...', $dbcnx);
$res = mysql_query ('select * from gal2008 where evento = "$evento" ORDER BY id DESC');
$num = mysql_num_rows ($res);
?>


Ho tentato mettendo:

<?php
$evento = $_GET['evento'];?>

Pensavo che così mettendo la variabile nel link (tipo www.???????.it/pagina.php?evento=allnat08) potesse funzionare....... mi sbagliavo.
Potete aiutarmi ??
Grazie.