17/01/12 13:20
ale00
Il mio codice è il seguente:
Sto usando easyphp, quando vado su 127.0.0.1, tutta la parte con i tag <?php, ?> non viene visualizzata! Qualcuno sa dirmi perchè? Grazie mille!
<html> <head> <title>Pacchetto</title> </head> <body> <?php echo "<h4><b><font size=6> Ricerca pacchetti dei tesserati </font></b></h4>"; echo "<form method='get' action='ricerca.php'>"; echo "<table>"; if( !mysql_connect("localhost","user","")){ die('Errore di connessione:' . musql_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> <br><br> <input type="submit" value="Cerca"> </form> </body> </html>
Sto usando easyphp, quando vado su 127.0.0.1, tutta la parte con i tag <?php, ?> non viene visualizzata! Qualcuno sa dirmi perchè? Grazie mille!
aaa