questo è il codice solo che non mii fa nienteCodice PHP:
include 'include/header.inc.php';
include 'include/menufluoro.inc.php';
include 'include/left.inc.php';
echo "
<td>
<html>
<head>
<script type=\"text/javascript\" src=\"tabber.js\"></script>
<link rel=\"stylesheet\" href=\"example.css\" type=\"text/css\" media=\"screen\" ></link>
<link rel=\"stylesheet\" href=\"info.css\" type=\"text/css\" media=\"screen\" ></link>
</head>
<body>";
if(!isset($scelta))
{
$scelta=0;
echo "
<div name=a0 class=\"tabber\">
<div name=a1 class=\"tabbertab\">
<select id=mySelect1 onChange=\"window.open(this.options[this.selectedIndex].value,'_top')\" >
<option>Scegli un opzione</option>
<option value='$_SERVER[PHP_SELF]?scelta=1'>Stato</option>
<option value='$_SERVER[PHP_SELF]?scelta=2'>Citta</option>
echo </select>";
switch($scelta)
{
case 1:
include 'include/conf.inc.php';
$ris=mysql_query("select * from state;");
$num_riga=mysql_num_rows($ris);
echo "<table border=2><tr><td>Stato</td><td></td><td></td><td></td></tr>";
while($riga=mysql_fetch_array($ris))
{
print "<tr><td>".$riga['state']."</td>";
}
print "<td>input type=button value=Aggiungi onclick=></td>";
print "<td>input type=button value=Modifica onclick=></td>";
print "<td>input type=button value=Cancella onclick=></td></tr></table>";
case 2:
$ras=mysql_query("select * from town;");
$num_riga=mysql_num_rows($ras);
echo "<table border=2><tr><td>Località</td><td></td><td></td><td></td></tr>";
while($riga=mysql_fetch_array($ras))
{
print "<tr><td>".$riga['town']."</td>";
}
print "<td>input type=button value=Aggiungi onclick=></td>";
print "<td>input type=button value=Modifica onclick=></td>";
print "<td>input type=button value=Cancella onclick=></td></tr></table>";
}
echo "</div>
</div>
</td>";
include 'include/rigth.inc.php';
include 'include/footer.inc.php';
echo "
</body>
</html>";
}
dove sbaglio con il php_self?
qualcuno mi aiuta?