php.de

Zurück   php.de > Webentwicklung > Datenbanken

Datenbanken SQL und Co

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 20.10.2004, 14:39  
Erfahrener Benutzer
 
Registriert seit: 23.11.2003
Beiträge: 179
Creativ
Standard You have an error in your SQL syntax

Hi
Habe diesen Mysql-Befehl:
PHP-Code:
UPDATE $userbtl SET freigeschaltet='1' WHERE freischalten_code='".$_GET['activateid']."' 
Wenn ich den jetzt aber ausühre kommt folgende Fehlermeldung:
PHP-Code:
You have an error in your SQL syntaxCheck the manual that corresponds to your MySQL server version for the right syntax to use near 'SET freigeschaltet1='1' WHERE freischalten_code='1'' at line 1 
Was mache ich falsch?
__________________
Meine PHPInfo: http://www.ld-network.de/phpinfo.php

\/isit Me @ www.simrally.de
Creativ ist offline   Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 20.10.2004, 16:00  
Gast
 
Beiträge: n/a
Standard Re: You have an error in your SQL syntax

Zitat:
Zitat von Creativ
Was mache ich falsch?
Du solltest den geparsten SQL String mal per echo/print ausgeben lassen. Wie es aussieht, ist $userbtl wahrscheinlich leer.
  Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
wie müsste die korrekte Syntax sein? dh1sbg Datenbanken 2 06.05.2008 21:45
INSERT....Syntax Fehler OrlandoPolic Datenbanken 16 17.01.2008 23:19
syntax Error? dh1sbg Datenbanken 4 04.10.2006 14:32
Fehlermeldung You have an error in your SQL syntax; check... blu21 Datenbanken 2 18.09.2006 15:34
Syntax Fehler PHP Tipps 2006 9 04.08.2006 18:20
Mysql Syntax Fehler Datenbanken 3 06.07.2006 09:58
You have an error in your SQL syntax near PHP Tipps 2005-2 1 06.10.2005 21:55
[solved] Parse-Fehler bei INSERT INTO Datenbanken 19 15.08.2005 13:56
komm bei der Syntax nicht mehr weiter PHP Tipps 2005-2 3 03.08.2005 18:09
[Erledigt] #1064 - You have an error in your SQL syntax. Datenbanken 8 27.05.2005 14:13
Bei Datenbankabfrage kommt 'You have an error in your SQL .' PHP Tipps 2005 3 01.02.2005 17:51
[Erledigt] Probleme mit Delete Syntax Datenbanken 6 27.12.2004 12:07
Is your Son a Computer Hacker?? Off-Topic Diskussionen 8 10.09.2004 20:00
You have an error in your SQL PHP Tipps 2004 11 16.06.2004 14:24

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
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, you have an error in your sql syntax, 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, 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 \'set, 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 \'insert into, http://www.php.de/datenbanken/10850-you-have-error-your-sql-syntax.html, 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 \'where, 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 5you have an error in your sql syntax; check the manual that corresponds to your mysql server version for th, #1064 - 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, insert into 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, #1064 - 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 2, 1064 - 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, mysql update set you have an error in your sql syntax, 1064 - you have an error in your sql syntax, you have an error in your sql syntax was mache ich falsch, 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 insert into, 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 \', 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 update, #1064 - you have an error in your sql syntax;, #1064 - 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 \'\18\\' at line 1

Alle Zeitangaben in WEZ +1. Es ist jetzt 10:45 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.