Buona sera a tutti sto scrivendo un programma in php ma mi da questo errore
Warning: Unexpected character in input: '' (ASCII=31) state=0 in C:\xampp\htdocs\dashboard\programma\anagrafica.php on line 99
il codice è il seguente
dove sbaglio?Codice:<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Gestione Clienti</title> <link href="css/moduli.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" language="JavaScript"> var timerID = null; var timerRunning = false; function stopclock (){ if(timerRunning) clearTimeout(timerID); timerRunning = false; } function showtime () { var now = new Date(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds() var timeValue = "" + ((hours >24) ? hours -12 :hours) timeValue += ((minutes < 10) ? ":0" : ":") + minutes timeValue += ((seconds < 10) ? ":0" : ":") + seconds document.clock.face.value = timeValue; // you could replace the above with this // and have a clock on the status bar: // window.status = timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true; } function startclock () { // Make sure the clock is stopped stopclock(); showtime(); } //--> </script> </head> <body onload="startclock(); timerONE=window.setTimeout"> <div id="contenitore"> <div id="titolo"> <h1 align="center">Gestione Clienti</h1> <?php include_once('funzioni/data.php'); //PREPARO LE QUERY //INVIO LE QUERY //CONTROLLO L'ESITO //STAMPO I RISULTATI $locale=setlocale(LC_TIME,'It-IT'); echo " <h2 align=\"center\"> <FORM name=clock onsubmit=0> Buon giorno oggi é ". $data." sono le ore <INPUT size=10 value=\"\" name=\"face\" style=\"color:black; background-color:#C0C0C0; font-size:18px; font-family:'Comic Sans MS', cursive; border:0px; font-weight: bold;\"/> </FORM> </h2>"; ?> </div> <div id="menu" class="menu"> <a href="index.php">HOME</a><br><br> <a class="attivo" href="">Anagrafica</a><br> <a href=""> Inerisci anagrafica</a><br> <a href=""> Modifica anagrafica</a><br> <a href=""> Elimina anagrafica</a><br><br> <a href="">Questionario</a><br><br> </div> <div id="boxright"> <?php require 'funzioni/connessione.php'; require 'funzioni/sis_data.php'; $sql="SELECT * FROM anagrafica ORDER BY cognome ASC"; $res=mysql_query($sql); if(!$res){ die('ERRORE NELLA QUERY $sql:'.mysql_error()); } echo' <table border="1"> <tr> <th>Cognome</th> <th>Nome</th> <th>Data di nascita</th> <th>Codice Fiscale</th> <th>Via</th> <th>Numero</th> <th>CAP</th> <th>Città</th> <th>Provincia</th> </tr>'; while($row=mysql_fetch_assoc($res)){ $cognome=htmlentities($row['cognome']); $nome=htmlentities($row['nome']); $data_nascita=visualizza_data($row['data_nascita']); $codice_fiscale=htmlentities($row['codice_fiscale']); $via=htmlentities($row['via']); $numero=htmlentities($row['numero']); $cap=htmlentities($row['cap']); $citta=hatmlentities($row['citta']); $provincia=htmlentities($row['provincia']); if(!$cognome)$cognome=' '; if(!$nome)$nome=' '; if(!$data_nascita)$data_nascita=' '; if(!$codice_fiscale)$codice_fiscale=' '; if(!$via)$via=' '; if(!$numero)$numero=' '; if(!$cap)$cap=' '; if(!$citta)$citta=' '; if(!$provincia)$provincia=' '; echo" <tr> <td>$cognome</td> <td>$nome</td> <td>$data_nascita</td> <td>$codice_fiscale</td> <td>$via</td> <td>$numero</td> <td>$cap</td> <td>$citta</td> <td>$provincia</td> </tr>"; } echo' </table>'; ?> </div> </div> </body> </html>
grazie in anticipo per l'aiuto

LinkBack URL
About LinkBacks


