Ho un problemino con lo script di }gu|do[z]{®©, ho incluso il file function.paging.php, quello che conteneva il codice però non funziona! questo è il codice che uso:


Codice PHP:
      <?
include("connect.inc.php");
include(
"function.paging.php");

mysql_connect('localhost','','');
mysql_select_db('databas');
 
$res paging('SELECT * FROM $tablename where id=$_GET[id]');

if (!
$res[0]) { echo "Tutorial non disponibile.";}
else
 {
    while(
$dati mysql_fetch_array($res[0])) 
      {
       echo 
"
"
.$dati['campo'];
      }
    }

echo 
"<table width=\"95%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
  <tr>
    <td height=\"20\" align=\"left\" valign=\"top\"><table width=\"100%\" height=\"28\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"table_print\">
      <tr>
        <td align=\"left\" valign=\"middle\"><font class=\"print\"><a href=\"print_art.php?id=
$id\" target=\"_blank\">Stampa</a> <img src=\"img/print.gif\"> <a href=\"javascript:popUpWindow('sendtoafriend.php?id=$id', '250','300' ,'500','300')\" class=\"normale\">Segnala ad un amico</a> <img src=\"img/friend.gif\"> <a href=\"search.php\" class=\"normale\">Cerca</a> <img src=\"img/search.gif\"></font></td>
      </tr>
    </table>      </td>
  </tr>
  <tr>
    <td height=\"228\" align=\"center\" valign=\"top\">

      <table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"tabella_int\">
        <tr>
          <td class=\"tabella_int\" width=\"400\" align=\"left\"><font style=\"font-family: verdana; font-size: 16px; color: #000000; font-weight: bold;\">
$res[titolo]</font></td>
          <td width=\"200\" align=\"right\" valign=\"bottom\"><font class=\"data\">
$res[ora]:$res[minuto] - $res[giorno]/$res[mese]/$res[anno]</font></td>
        </tr>
        <tr>
          <td colspan=\"2\"><hr size=\"1\" color=\"#FFFFFF\"></td>
        </tr>
        <tr>
          <td colspan=\"2\" align=\"left\"><font class=\"posted\">Postato da: <a href=\"mailto:
$res[mail]\">$res[autore]</font></a></td>
        </tr>
      </table>
    

    <table width=\"98%\" height=\"30\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tabella_sottotitolo\">
      <tr>
        <td>
$res[sottotitolo]</td>
      </tr>
    </table>
    

    <table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">

      <tr>
        <td><font class=\"testo2\" align=\"justify\">
$res[contenuto]</font></td>
      </tr>
    </table>
    

    


   

</td>
  </tr>
</table>"
;
?>
Qualcuno sa dove può essere l'errore???