tag:forum.selfhtml.org,2005:/self wo ist der syntaxfehler? :( – SELFHTML-Forum 2003-06-01T20:30:16Z https://forum.selfhtml.org/self/2003/may/30/wo-ist-der-syntaxfehler/409526#m409526 backbone Gordonshumway@gmx.at 2003-05-29T22:45:45Z 2003-05-29T22:45:45Z wo ist der syntaxfehler? :( <p>aloha!</p> <p>was ist hierdrann bitte syntaktisch falsch??? ich find den fehler einfach nicht.</p> <p>$edit_data = "UPDATE <code>user</code> SET 'email' = 'email_strip' , 'aboutme' = '$aboutme_strip' , 'wort' = '$wort_strip' , 'icq' = '$icq_strip' , 'msn' = '$msn_strip' , 'yahoo' = '$yahoo_strip' , 'hp' = '$hp_strip' WHERE 'username' = '$username'";</p> <p>mysql gibt folgenden fehler aus:</p> <p>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 ''email' = 'email_strip' , 'aboutme' = 'momentan...öhm...don't :D</p> <p>thx for help</p> <p>tschau</p> https://forum.selfhtml.org/self/2003/may/30/wo-ist-der-syntaxfehler/409531#m409531 Christian Kruse CK1@wwwtech.de http://wwwtech.de/ 2003-05-29T23:06:36Z 2003-05-29T23:06:36Z wo ist der syntaxfehler? :( <p>Hallo backbone,</p> <blockquote> <p>$edit_data = "UPDATE <code>user</code> SET 'email' = 'email_strip' ,<br> 'aboutme' = '$aboutme_strip' , 'wort' = '$wort_strip' ,<br> 'icq' = '$icq_strip' , 'msn' = '$msn_strip' , 'yahoo' =<br> '$yahoo_strip' , 'hp' = '$hp_strip' WHERE 'username' =<br> '$username'";</p> </blockquote> <p>Du solltest mal den Unterschied zwischen ` und '<br> ueberdenken ;) (Und das DB-Design wuerde ich auch nochmal<br> ueberdenken...)</p> <p>Gruesse,<br>  CK</p> <div class="signature">-- <br> <a href="http://cforum.teamone.de/" rel="nofollow noopener noreferrer">http://cforum.teamone.de/</a><br> <a href="http://wishlist.tetekum.de/" rel="nofollow noopener noreferrer">http://wishlist.tetekum.de/</a><br> If God had meant for us to be in the Army, we would have been born with green, baggy skin. </div> https://forum.selfhtml.org/self/2003/may/30/wo-ist-der-syntaxfehler/409529#m409529 Rouven thimmsd@gmx.de 2003-05-29T23:06:55Z 2003-05-29T23:06:55Z wo ist der syntaxfehler? :( <p>Hi</p> <blockquote> <p>$edit_data = "UPDATE <code>user</code> SET 'email' = 'email_strip' , 'aboutme' = '$aboutme_strip' , 'wort' = '$wort_strip' , 'icq' = '$icq_strip' , 'msn' = '$msn_strip' , 'yahoo' = '$yahoo_strip' , 'hp' = '$hp_strip' WHERE 'username' = '$username'";</p> </blockquote> <p>--> Spaltennamen/Tabellennamen bitte ohne Quotes, du versuchst gerade dem String email den Wert "email_strip" zuzuweisen:<br> $edit_data = "UPDATE user SET email = 'email_strip' ...</p> <p>MfG<br> Rouven</p> <div class="signature">-- <br> <br> -------------------<br> ss:) zu:) ls:& fo:) de:< va:{ ch:? sh:) n4:( rl:? br:$ js:| ie:) fl:( </div> https://forum.selfhtml.org/self/2003/may/30/wo-ist-der-syntaxfehler/409527#m409527 ich 2003-06-01T20:30:16Z 2003-06-01T20:30:16Z wo ist der syntaxfehler? :( <blockquote> <p>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 ''email' = 'email_strip' , 'aboutme' = 'momentan...öhm...don't :D</p> </blockquote> <p>kann das sein das da ein ' in $aboutme_strip ist?</p> https://forum.selfhtml.org/self/2003/may/30/wo-ist-der-syntaxfehler/409530#m409530 TomIRL 2003-05-30T10:52:21Z 2003-05-30T10:52:21Z wo ist der syntaxfehler? :( <p>Moin Rouven,</p> <blockquote> <p>--> Spaltennamen/Tabellennamen bitte ohne Quotes, du versuchst</p> </blockquote> <p>Schon mal ins Handbuch geguckt?<br> <a href="Zitat:" rel="nofollow noopener noreferrer">Zitat:</a><br> Datenbank-, Tabellen-, Index-, Spalten- und Alias-Namen folgen in MySQL alle denselben Regeln.</p> <p>Beachten Sie, dass sich die Regeln ab MySQL-Version 3.23.6 geändert haben, als das Quoten von Bezeichnern (für Datenbank-, Tabellen- und Spaltennamen) eingeführt wurde, mit ``'. `"' funktioniert ebenfalls, um Bezeichner zu quoten, wenn Sie im ANSI-Modus fahren. See section<br> </zitat></p> <p>gerade dem String email den Wert "email_strip" zuzuweisen:</p> <blockquote> <p>$edit_data = "UPDATE user SET email = 'email_strip' ...</p> </blockquote> <p>Da liegt meiner Ansicht nach das Problem!<br> Viele Grüße TomIRl</p> https://forum.selfhtml.org/self/2003/may/30/wo-ist-der-syntaxfehler/409532#m409532 backbone Gordonshumway@gmx.at 2003-05-29T23:17:54Z 2003-05-29T23:17:54Z wo ist der syntaxfehler? :( <p>hi!</p> <blockquote> <p>Du solltest mal den Unterschied zwischen ` und '<br> ueberdenken ;).</p> </blockquote> <p>jo,schein wohl einen zu geben ;). hab dann mal ` in ' gewandelt aber fehler ist trotzdem noch vorhanden :(.</p> <p>und was ist zu dem db-design zusagen? find das super so :D</p> <p>tschau</p> https://forum.selfhtml.org/self/2003/may/30/wo-ist-der-syntaxfehler/409533#m409533 backbone Gordonshumway@gmx.at 2003-05-29T23:37:38Z 2003-05-29T23:37:38Z wo ist der syntaxfehler? :( <p>aaaaahuu :)</p> <p>ich habs. nun muss mir aber mal bitte jemand den unterschied zwischen <code>und ' erklären. was bedeutet</code> und was ' ???</p> <p>tschau</p> https://forum.selfhtml.org/self/2003/may/30/wo-ist-der-syntaxfehler/409534#m409534 Christian Kruse CK1@wwwtech.de http://wwwtech.de/ 2003-05-30T00:04:45Z 2003-05-30T00:04:45Z wo ist der syntaxfehler? :( <p>Hallo backbone,</p> <blockquote> <p>ich habs. nun muss mir aber mal bitte jemand den unterschied<br> zwischen <code>und ' erklären. was bedeutet</code> und was ' ???</p> </blockquote> <p><a href="http://www.mysql.com/doc/en/Legal_names.html#IDX993" rel="nofollow noopener noreferrer">http://www.mysql.com/doc/en/Legal_names.html#IDX993</a></p> <p>Gruesse,<br>  CK</p> <div class="signature">-- <br> <a href="http://cforum.teamone.de/" rel="nofollow noopener noreferrer">http://cforum.teamone.de/</a><br> <a href="http://wishlist.tetekum.de/" rel="nofollow noopener noreferrer">http://wishlist.tetekum.de/</a><br> If God had meant for us to be in the Army, we would have been born with green, baggy skin. </div>