Originariamente inviato da marketto
finchè nn posti l'errore ed il numero di riga che ti genera l'errore nn possiamo aiutarti
Allora... Lo script completo è questo:
Codice PHP:
<?
include('./Functions.php');
connect();
$count mysql_query("SELECT COUNT(id) FROM guestbook");
$res_count mysql_fetch_row($count);
$tot $res_count[0];
    print 
"
<html>
<head>
<title>PaTeR GuestBook</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"./Style.css\">
</head>
<body>
<div align=\"center\">



<table cellspacing=\"1\" cellpadding=\"1\">
<tr>
<td class=\"toptd\" width=\"600\" colspan=\"2\">

<div align=\"center\">
PaTeR Guestbook
</div>
</td>
</tr>
<tr>
<td class=\"subtd\" width=\"150\">
Messaggi: [b]"
.$tot."[/b]
</td>
<td class=\"subtd\" width=\"450\">
<div align=\"center\">
<img src=\"./index.gif\" border=\"0\"> <a href=\"index.php\">Home</a> - <img src=\"./write.gif\" border=\"0\"> <a href=\"./write.php\">Write</a>

</div>
</td>
</tr>"
;

$per_page 10;

$tot_pages ceil($tot $per_page);

$primo = ($current_page 1) * $per_page;
$query_limit mysql_query("SELECT * FROM guestbook LIMIT $primo$per_page");
while(
$_MESSAGE mysql_fetch_array($query_limit))
{
    
$_MESSAGE['messaggio'] = control($_MESSAGE['messaggio']);
    print 
"
             <tr>
            <td class=\"bottd\" width=\"150\">
            [b]Autore:[/b]"
.$_MESSAGE['autore']."

            [b]Data:[/b]
"
.$_MESSAGE['data']."

            [b]Ora:[/b]"
.$_MESSAGE['ora']."

            </td>
            <td class=\"bottd\" width=\"450\">
            <img src=\"./write.gif\" border=\"0\"> [b]Messaggio:[/b]

            "
.$_MESSAGE['messaggio']."
            <hr width=\"400\">
            <div align=\"right\">
            [b]ID:[/b] "
.$_MESSAGE['id']."
            </div>
            </td>
            </tr>
   "
;
}
else 
//<-- Errore
{
   print 
"<div align=center>Si sono verificati dei problemi! Probabilmente sono in corso lavori tecnici...
[url='./index.php']Clicca qui per ritornare al Guestbook[/url]</div>"
;
}
print
"
   <tr>
   <td class='subtd' width='150'>
   [b]Naviga nel Guestbook![/b]
   </td>
   <td class='subtd' width='450'>
   <div align='center'>
   </div>
   </td>
   </tr>
   </table>
   </div>
   </body>
   </html>
"
;
?>
L'errore per ora mi dà il T_ELSE... quello che dà errore è indicato