Questo è il mio codice:
Quando vado su localhost, non viene visualizzata tutta la parte tra i tag <?php e ?>.codice:<html> <head> <title>Pacchetto</title> </head> <body> <?php echo "<h4><font size=6> Ricerca pacchetti dei tesserati </font></h4>"; echo "<form method=\"get\" action=\"ricerca.php\">"; echo "<table>"; if( !mysql_connect("localhost","root","")){ die("Errore di connessione:" . mysql_error());} if( !mysql_selectdb("acquisto") ){ die("Errore di selezione del DB:" . mysql_error() );} $sql="SELECT cognome FROM tesserato"; $ris=mysql_query($sql); if(!$ris) die("Errore nella query:" . mysql_error(); echo "<tr><td> Cognome: </td><td>"; echo "<select name=\"cognome\">"; while( $riga = mysql_fetch_row($ris)) { echo "<option value=\"$riga[0]\"> $riga[0]"; } echo "</select></td>"; ?> <tr> <td> Periodo: </td> <td> da <input type="text" size="10" maxlength="10" name="data1"> </td> </tr> <td> a <input type="text" size="10" maxlength="10" name="data2"> </td> </tr> </table> <input type="submit" value="Cerca"> </form> <form action="index.html"> <input type="submit" value="INDIETRO"> </form> </body> </html>
Qualcuno sa dirmi come posso fare? Grazie mille!!
(Sto utilizzando esyphp)

Rispondi quotando