mysql_query

  • Juten Tach,


    Ich scripte derzeit für meine Website 'gta-tools.de' ein Registrierungssystem, nun scheint die mysql_querý falsch zu sein, was aber nicht sein kann :(


    PHP
    mysql_query("INSERT INTO users (username,password,e-mail) VALUES ('$username','$password','$mail') ");


    Eigenlich ist die doch so richtig oder?


    Danke im Vorraus



    Dark

    "Stay hungry! Stay foolish!" - Steve Jobs

  • Geht leider immer noch nicht <.< hier der ganze PHP Code:


    "Stay hungry! Stay foolish!" - Steve Jobs

  • PHP
    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 '-mail)  VALUES ('sdasd','sdsd','sda')' at line 1


    Das spuckt er aus...



    LG
    Dark

    "Stay hungry! Stay foolish!" - Steve Jobs

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen