Tipologia
Tutte
if (!$cdb) include("dbcon.php"); $q = "select nome from tiposto"; $e = pg_exec($cdb, $q); $n = pg_numrows($e); for ($i=1; $i <= $n; $i++ ) { $q = "select nome from tiposto where id=$i and tipo=1"; $e = pg_exec($cdb, $q); list($pr) = pg_fetch_row($e, 0); if ($pr) { echo "
$pr
"; } } ?>
Località
Tutte
$q = "select nome from localita"; $e = pg_exec($cdb, $q); $n = pg_numrows($e); for ($i=1; $i <= $n; $i++ ) { $q = "select nome from localita where id=$i"; $e = pg_exec($cdb, $q); list($pr) = pg_fetch_row($e, 0); echo "
$pr
"; } ?>
Posti Letto
Tutti
2
3
4
5
6
7
8
Tipologia
Tutte
if (!$cdb) include("dbcon.php"); $q = "select nome from tiposto"; $e = pg_exec($cdb, $q); $n = pg_numrows($e); for ($i=1; $i <= $n; $i++ ) { $q = "select nome from tiposto where id=$i and tipo=2"; $e = pg_exec($cdb, $q); list($pr) = pg_fetch_row($e, 0); if ($pr) { echo "
$pr
"; } } ?>
Località
Tutte
$q = "select nome from localita"; $e = pg_exec($cdb, $q); $n = pg_numrows($e); for ($i=1; $i <= $n; $i++ ) { $q = "select nome from localita where id=$i"; $e = pg_exec($cdb, $q); list($pr) = pg_fetch_row($e, 0); echo "
$pr
"; } ?>
Posti Letto
Tutti
2
3
4
5
6
7
8