Si certo viene memorizzato, il file view ora è questo:
Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>WorldTech - Portali</title>
<style type="text/css">
a {
color: #000000;
}
a:visited {
color: #000000;
}
a:hover {
color: #FFFFFF;
}
.style18 {
font-family: Arial, Helvetica, sans-serif;
font-size: small;
}
.style28 {
font-family: Arial, Helvetica, sans-serif;
font-size: small;
border-top-style: none;
border-top-width: medium;
}
.style29 {
border-left-width: 0px;
border-right-width: 0px;
}
.style60 {
font-family: Arial, Helvetica, sans-serif;
font-size: medium;
border-top-style: none;
border-top-width: medium;
}
.style62 {
background-image: url('../../Immagini/up.gif');
}
.style63 {
text-align: center;
}
.style64 {
text-align: center;
background-image: url('../../Immagini/base_up.jpg');
}
</style>
<link rel="stylesheet" type="text/css" href="../../script/style4.css" />
<script src="../../script/script2.js" type="text/javascript">
</script>
</head>
<body style="background-image: url('../../Immagini/sfondo.gif'); background-attachment: fixed;">
<table style="width: 100%">
<tr>
<td><?
include("../../header1.php");
?>
</td>
</tr>
<tr>
<td class="style60">
<table style="width: 100%" class="style62">
<tr>
<td class="style63"><a href="../../index.php">
<img id="img32" alt="WorldTech.it" height="20" src="../../Immagini/button31.gif" style="border: 0" width="100" /><!-- MSComment="ibutton" fp-style="fp-btn: Simple Text 4; fp-font: Arial, Helvetica, sans-serif; fp-font-style: Bold; fp-font-size: 11; fp-font-color-normal: #FFFFFF; fp-img-hover: 0; fp-img-press: 0; fp-preload: 0; fp-transparent: 1" fp-title="WorldTech.it" --></a></td>
<td class="style63"><a href="../index.php">
<img id="img27" alt="Portali" height="20" src="../../Immagini/button32.gif" style="border: 0" width="100" /><!-- MSComment="ibutton" fp-style="fp-btn: Simple Text 4; fp-font: Arial, Helvetica, sans-serif; fp-font-style: Bold; fp-font-size: 11; fp-font-color-normal: #FFFFFF; fp-img-hover: 0; fp-img-press: 0; fp-preload: 0; fp-transparent: 1" fp-title="Portali" --></a></td>
<td class="style63"><a href="../../programmi/index.php">
<img id="img28" alt="Programmi" height="20" src="../../Immagini/button33.gif" style="border: 0" width="100" /><!-- MSComment="ibutton" fp-style="fp-btn: Simple Text 4; fp-font: Arial, Helvetica, sans-serif; fp-font-style: Bold; fp-font-size: 11; fp-font-color-normal: #FFFFFF; fp-img-hover: 0; fp-img-press: 0; fp-preload: 0; fp-transparent: 1" fp-title="Programmi" --></a></td>
<td class="style63"><a href="../../speciale/index.php">
<img id="img29" alt="Primo Piano" height="20" src="../../Immagini/button34.gif" style="border: 0" width="100" /><!-- MSComment="ibutton" fp-style="fp-btn: Simple Text 4; fp-font: Arial, Helvetica, sans-serif; fp-font-style: Bold; fp-font-size: 11; fp-font-color-normal: #FFFFFF; fp-img-hover: 0; fp-img-press: 0; fp-preload: 0; fp-transparent: 1" fp-title="Primo Piano" --></a></td>
<td class="style63"><a href="../../forum/forum.php">
<img id="img30" alt="Forum" height="20" src="../../Immagini/button35.gif" style="border: 0" width="100" /><!-- MSComment="ibutton" fp-style="fp-btn: Simple Text 4; fp-font: Arial, Helvetica, sans-serif; fp-font-style: Bold; fp-font-size: 11; fp-font-color-normal: #FFFFFF; fp-img-hover: 0; fp-img-press: 0; fp-preload: 0; fp-transparent: 1" fp-title="Forum" --></a></td>
<td class="style63">
<img id="img31" alt="Cerca" height="20" src="../../Immagini/button36.gif" style="border: 0" width="100" /><!-- MSComment="ibutton" fp-style="fp-btn: Simple Text 4; fp-font: Arial, Helvetica, sans-serif; fp-font-style: Bold; fp-font-size: 11; fp-font-color-normal: #FFFFFF; fp-img-hover: 0; fp-img-press: 0; fp-preload: 0; fp-transparent: 1" fp-title="Cerca" --></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="style64">
<br />
<img alt="" height="50" src="../../Immagini/portali.gif" width="400" /><br />
<br />
<div id="mytabsmenu" class="tabsmenuclass">
<ul>
<li><a href="http://www.wtech.netsons.org/portali/microsoft/index.php" rel="gotsubmenu[selected]">Microsoft</a></li>
<li><a href="http://www.wtech.netsons.org/portali/apple/index.php" rel="gotsubmenu">Apple</a></li>
<li><a href="http://www.wtech.netsons.org/portali/office/index.php" rel="gotsubmenu">Office</a></li>
<li><a href="http://www.wtech.netsons.org/portali/sicurezza/index.php" rel="gotsubmenu">Sicurezza</a></li>
<li><a href="http://www.wtech.netsons.org/portali/multimedia/index.php" rel="gotsubmenu">Multimedia</a></li>
<li><a href="http://www.wtech.netsons.org/portali/internet/index.php" rel="gotsubmenu">Internet</a></li>
<li><a href="http://www.wtech.netsons.org/portali/live/index.php" rel="gotsubmenu">I'M</a></li>
<li><a href="http://www.wtech.netsons.org/portali/im/index.php" rel="gotsubmenu">Live</a></li>
<li><a href="http://www.wtech.netsons.org/portali/hardware/index.php">Hardware</a></li>
<li><a href="http://www.wtech.netsons.org/portali/mobile/index.php" rel="gotsubmenu">Mobile</a></li>
<li><a href="http://www.wtech.netsons.org/portali/techouse/index.php" rel="gotsubmenu">Tech House</a></li>
</ul>
</div>
<div id="mysubmenuarea" class="tabsmenucontentclass">
<a href="../../script/menu_portali.htm" style="visibility:hidden">Sub Menu contents</a>
</div>
<script type="text/javascript">
mouseovertabsmenu.init("mytabsmenu", "mysubmenuarea", true)
</script>
</td>
</tr>
</table>
<table align="center" style="width: 100%; height: 100%" class="style29">
<tr>
<td class="style28"> </td>
</tr>
<tr>
<td class="style28"><?
include("top_foot.inc.php");
include("config.inc.php");
top();
$db = mysql_connect($db_host, $db_user, $db_password);
if ($db == FALSE)
die ("Errore nella connessione. Verificare i parametri nel file config.inc.php");
mysql_select_db($db_name, $db)
or die ("Errore nella selezione del database. Verificare i parametri nel file config.inc.php");
$query = "SELECT id, data, titolo, categoria FROM $sezione ORDER BY data DESC LIMIT 0,5";
$result = mysql_query($query, $db);
$categorie = array("", "categoria1", "categoria2", "categoria3", "categoria4", "categoria5");
while ($row = mysql_fetch_array($result))
{
echo "<a href=\"view.php?id=".$row['id']."\">" . date("j/n/y", $row['data']) . " - <strong>".$row['titolo']."</strong> - ".$row['categoria']."</a><br>";
}
mysql_close($db);
foot();
?></td>
</tr>
<tr>
<td style="height: 50px" class="style18"> </td>
</tr>
<tr>
<td><?
include("../../footer.php");
?>
</td>
</tr>
</table>
</body>
</html>
Funziona tutto ma al posto che categoria1, categoria2, categoria3, categoria4, categoria5 si vede solo il numero 1, 2, 3, 4, 5