Questa è la funzione PHP che ho creato:
Dove $con è la connessione al Database.Codice PHP:
function notifica($id, $text) {
global $con;
$sqlNOT = "INSERT INTO notifiche (id_utente, data, testo) VALUES ('".$id."', '".date("Y-m-d H:i:s")."', '".addslashes($text)."'";
$queryNOT = mysql_query($sqlNOT, $con);
}
Il Problema è che quando faccio:
Non mi funziona, ma non da nemmeno errori..Codice PHP:
notifica(1, "Testo della Notifica");
Cosa è sbagliato???![]()