E' la query che non va a buon fine prova a modificare il codice e vedi che errore ti viene fuori:Originariamente inviato da lory38
ciao,
ho un problema di errore "Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\wamp\www\site\index.php on line 123
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
ecco codice:
Codice PHP:$query_record = mysql_query("SELECT * FROM cert WHERE id=$id");
$row_record = mysql_fetch_assoc($query_record);
![]()
P.S.Codice PHP:...
$query_record = mysql_query("SELECT * FROM cert WHERE id=$id") or die ("Errore: ".mysql_error());
...
Prova anche a loggare $id per vedere se è valorizzato.

Rispondi quotando