nella home page ho include(file.php);
file.php
-------
<?php
include ("configurazione.php");
include ("dbconnect.php");
$result=mysql_query("SELECT * FROM lbmenu_amministrazione ORDER BY id_comando");
?>
<html>
<head>
<title>Menu Laterale Amministratore</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="sitoVENG.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="166" border="4" cellspacing="0" cellpadding="0" height="94" name="menulaterale" bgcolor= "#009900">
<tr>
<td height="41">
<div align="center"><font size="4">MENU</font></div>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#D2EEB1">
<table width="165" border="2" cellspacing="0" cellpadding="0" height="12" name="voci_menu">
<?php
while ($a_row = mysql_fetch_row($result)) { ?>
<tr bordercolor="#009933">
<td height="35" width="165">
<a target="_parent" href="<?php print "$a_row[2]";?>">
<?php print "$a_row[1]"; ?></a>
</td>
</tr>
<?php } ?>
</table>
</td>
</tr>
<tr><td width="140" height="12"></td></tr>
</table>
</body>
</html>
cmq il codice non ha problemi perchè in locale funziona....

Rispondi quotando