Salve a tutti ho creato uno script che carica una foto sul sito normali e in grandezza 200x200.
Solo che al momento di registrare i link alle foto mi da errore:
Il mio codice (penso sia corretto) è:codice: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 'desc, thumblink) values('admin','http://www.sito.it/images/6' at line 1
Dove Sbaglio?codice:$thumblink= "http://www.sito.it/images/thumb_$ImageName"; $link= "http://www.sito.it/images/$ImageName"; $desc=$_POST['desc']; $host="-----"; $user="-----"; $password="--------"; $db_name="-------"; $myconn=mysql_connect($host,$user,$password) or die("Connection error"); mysql_select_db($db_name,$myconn); $stringa="INSERT INTO images(id_user,link,desc,thumblink) VALUES('$sessionid','$link','$desc','$thumblink')"; mysql_query($stringa) or die(mysql_error());![]()
Ggrazie in anticipo![]()

Rispondi quotando

