You have an error in your SQL syntax....

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • wahsaga
    replied
    Originally posted by Kangarooo View Post
    Column count doesn't match value count at row 1

    Habe aber die Zeilen gezählt, das passt doch alles?!?
    Mach dir mal den Unterschied zwischen Zeilen und Spalten klar ...

    Leave a comment:


  • Kangarooo
    replied
    MOMENT!!!! habe doch was vergessen!!! 2 Anführungszeichen! VIELEN DANK FÜR DIE HILFE!!!!!!!!

    Leave a comment:


  • Kangarooo
    replied
    Oh man, das habe ich auch gerade gemacht, nun kommt folgender Fehler:

    Column count doesn't match value count at row 1

    Habe aber die Zeilen gezählt, das passt doch alles?!?

    Leave a comment:


  • Kropff
    replied
    Innerhalb der ersten Klammer natürlich auch alle Hochkommata raus.

    Peter

    Leave a comment:


  • Kangarooo
    replied
    Habe soeben beides versucht, nun kommt dieser Fehler:

    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 ''uid', 'pid', 'tstamp', 'crdate', 'cruser_id', 't3ver_oid', 't3ver_id', 't3ver_w' at line 1

    Das Feld "uid" ist auf autoincrement gesetzt, hat es vielleichtw as mit deisem Feld zu tun? Ich weiß eben absolut nicht, was ich mit den von typo3 erstellten Feldern im INSERT befehl anfangen soll!

    Leave a comment:


  • Kropff
    replied
    PHP Code:
    INSERT INTO 'tx_touristik_media' 
    Hochkommata raus oder mit Backticks arbeiten.

    Peter

    Leave a comment:


  • Kangarooo
    started a topic You have an error in your SQL syntax....

    You have an error in your SQL syntax....

    Hallo!
    Finde ABSOLUT den Fehler nicht zu folgender Meldung:

    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 ''tx_touristik_media' ('uid', 'pid', 'tstamp', 'crdate', 'cruser_id', 't3ver_oid'' at line 1

    und das hier ist die SQL Abfrage dazu: (Die Felder "uid" bis "hidden" wurden automatisch von typo3 angelegt, diese benötige ich ja trotzdem, aber im Formular auf der Webseite kann man nur die Werte "sourcemarket" bis "print" eingeben)

    $insert="INSERT INTO 'tx_touristik_media' ('uid', 'pid', 'tstamp', 'crdate', 'cruser_id', 't3ver_oid', 't3ver_id', 't3ver_wsid', 't3ver_label', 't3ver_state', 't3ver_stage', 't3ver_count', 't3ver_tstamp', 't3_origuid', 'deleted', 'hidden', 'sourcemarket', 'flyer', 'kw', 'month', 'year', 'region', 'et', 'print') VALUES ('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'sourcemarket', 'flyer', 'kw', 'month', 'year', 'region', 'et', 'print')";
    $result_insert = mysql_query($insert);
    if (!$result_insert) {
    echo mysql_error();
    }


    Kann mir BITTE jemand helfen?
Working...
X