Hallo,
ich habe folgende Query:
echo $query = "INSERT INTO $linktable VALUES(0,$id,$usrdata[m_id],'$en[title]','$en[descr]','$en[sum]','$en[url]','$en[down]','$en[vers]','$en[platf]','$en[size]','$en[price]','$en[author]','$en[email]',0,0,0,0,'$ip',".time().",".time().",0,0,0,0,0,'')";
$result = mysql_query($query) or die(mysql_error());
$en['listing_id'] = mysql_insert_id();
Diese liefert immer folgenden Fehler:
INTO scripts_links VALUES(0,,'12','test','test','test','http://www.test.de','','','','','','test.de','test@test.de',0,0,0,0,'192.168.0.1',1169711335,1169711335,0,0 ,0,0,0,'')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 ''12','test','test','test','http://www.test.de','','','','','','test.de','test' at line 1
jemand eine Idee?
Gruß
Jörn
ich habe folgende Query:
echo $query = "INSERT INTO $linktable VALUES(0,$id,$usrdata[m_id],'$en[title]','$en[descr]','$en[sum]','$en[url]','$en[down]','$en[vers]','$en[platf]','$en[size]','$en[price]','$en[author]','$en[email]',0,0,0,0,'$ip',".time().",".time().",0,0,0,0,0,'')";
$result = mysql_query($query) or die(mysql_error());
$en['listing_id'] = mysql_insert_id();
Diese liefert immer folgenden Fehler:
INTO scripts_links VALUES(0,,'12','test','test','test','http://www.test.de','','','','','','test.de','test@test.de',0,0,0,0,'192.168.0.1',1169711335,1169711335,0,0 ,0,0,0,'')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 ''12','test','test','test','http://www.test.de','','','','','','test.de','test' at line 1
jemand eine Idee?
Gruß
Jörn
Kommentar