Why does this code not work? I need to insert a new record on mysql called "utenti" but this code doesn't work:
<?php
$nome = $_REQUEST["nomeUtente"];
$cognome = $_REQUEST["cognome"];
$psw = $_REQUEST["psw"];
$email = $_REQUEST["email"];
$cell = $_REQUEST["num"];
echo $nome . " / " . $cognome . " / " . $psw . " / " . $email . " / " . $cell;
echo "<br>";
$conn = mysql_connect("hostName","User","password");
if(!$conn){
echo "connessione non satabilita";
}else{
if(!mysql_select_db("a4102239_utenti",$conn)){
echo "database non trovato";
}else{
$sql = "INSERT INTO utenti (id,psw,nome,cognome,email,cellulare) VALUES (NULL,'$psw','$nome','$cognome','$email','$cell')"; //costruzione comando di ricerca
}
}
?>