
Codice PHP:
<?
session_start();
include "../config.inc.php";
$sql_st = "SELECT ID,STANZA,OSPITI FROM STANZE_PRIVATE";
$query_st = mysql_query($sql_st, $connessione) or die(mysql_error());
?>
<html>
<head>
<title>Gestisci stanze private</title>
<link href="../stile.css" rel="stylesheet" type="text/css">
</head>
<body>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" valign="top"><div class="RedTIT">.: Cambia gli ospiti in una stanza o svuotala cancellandoli :.</div>
<table width="80%" border="0" cellspacing="2" cellpadding="0">
<tr class="RedB" align="center" height="25">
<td>Stanza</td>
<td width="15%"></td>
<td width="15%">Modifica</td>
</tr>
<?
$CONTA = 0;
while ($row_st = mysql_fetch_array($query_st)){
$id = $row_st['ID'];
$stanza = $row_st['STANZA'];
$ospiti = $row_st['OSPITI'];
$CONTA += 1; // Aggiunta *
$APPLICA_COLORE = (($CONTA % 2) > 0) ? "bgcolor=#540000" : "";// Aggiunta *
?>
<form action="do_modifica_stanze.php" method="post" name="mod" id="mod">
<tr class="RedL" <?=$APPLICA_COLORE?> height="25">
<td><?=$stanza?></td>
<td><input type="text" name="ospiti" class="textfieldBASE" value="<?=$ospiti?>" size="20"></td>
<td align="center"><input type="hidden" name="stanza" value="<?=$stanza?>">
<input type="submit" class="textfieldBASE" value="Modifica"></td>
</tr>
</form>
<?
}
@mysql_close($query);
@mysql_close($connessione);
?>
</table>
[url="accedi.php"]Torna Indietro[/url]
</td>
</tr>
</table>
</body>
</html>
il css interessato
codice:
.RedTIT {font-size: 13px; font-family: Verdana; color: #ff0000; text-decoration: none; font-weight: bold}
e il problema è..... che non vedo nel mio codice la miriade di
che servirebbero a creare tutto quello spazio tra il titolo e la tabella.