TEATRI DI ROMA STAGIONE 2012/2013 |
|
|
$db = mysql_connect("localhost", "deltaf","251978");
mysql_select_db(deltaf,$db)
or die ("Errore nella selezione del database");
/////// Estrapolo i nomi dei teatri inseriti nella tabella costi_teatro
if ($codt==''){
$info='s';
$elenc="select distinct codt, stagione from costi_teatro where (stagione='2012-2013')";
$elenco=mysql_query($elenc,$db);
/*punto le righe trovate */ while ($elencot=mysql_fetch_row($elenco)){
/*prendo il codice teatro*/ $codt=$elencot[0];
/*prendo la stagione */$stagione=$elencot[1];
/*seleziono dalla stessa tabella le righe con codt uguale al codice teatro e tipo_costo=abb(abbonamento)*/
$abbon1="select * from costi_teatro where (stagione='2012-2013' AND codt='$codt')";
//echo $abbon1;
$abbona=mysql_query($abbon1,$db);
/*seleziono il nome del teatro dalla tabella teatri tramite il codt */
$teatri="select * from teatri where ID='$codt'";
$teatri1=mysql_query($teatri,$db);
$teatri2=mysql_fetch_array($teatri1);
/* salvo il nome del teatro nella variabile $teatro*/ $teatro=$teatri2["teatro"];
$indirizzo=$teatri2["indirizzo"];
/////////////////////
$sp="select * from spettacoli where (codt='$codt' and (al>='2012-09-01')) order by dal";
//echo $sp;
$spe=mysql_query($sp,$db);
//////////////////////
?>
}
//}
}
?>
Per informazioni e prenotazioni:
Cooperativa IL SOGNO a r.l.
Viale Regina Margherita, 192 - 00198 ROMA
Tel. 06.85301758 - Fax 06.85301756
email: service@romeguide.it
|
|