Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 05:40

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PHP/SQL Update Befehl funktioniert nicht

Discussion on PHP/SQL Update Befehl funktioniert nicht within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1


 
Looneytune's Avatar
 
elite*gold: 301
The Black Market: 377/0/0
Join Date: Mar 2007
Posts: 24,560
Received Thanks: 13,303
PHP/SQL Update Befehl funktioniert nicht

Skript:

Zeile:
$updt = "UPDATE * FROM users SET user_firstlogin='1' WHERE username='$login' AND user_password='$password'";

Der Standardbefehl '0' wird nicht durch '1' ersetzt. Weiß jemand Rat?
Looneytune is offline  
Old 11/08/2013, 02:00   #2
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
Siehst du den Unterschied?:

Mikesch01 is offline  
Thanks
1 User
Old 11/08/2013, 08:32   #3
 
mhaendler's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 1,826
Received Thanks: 226
Schönes, Cross Posting obwohl dir im anderen Forum schon geholfen wurde, wie ich sowas liebe....



Setzen, Link öffnen und Grundlagen SQL lernen
mhaendler is offline  
Old 11/08/2013, 13:47   #4
 
Syntaxfehler's Avatar
 
elite*gold: 1
Join Date: Jan 2013
Posts: 335
Received Thanks: 293
Da hast du mal total die falschen Befehle drin.

So müsste das richtig sein:
PHP Code:
$updt "UPDATE users SET user_firstlogin='1' WHERE username='$login' AND user_password='$password'"

Ja, man sollte den Leute nichts vorkauen, aber das ist ein Aufwand von null.

Btw. ich würde das Zeug mit mysql_real_escape_string jetzt nicht unbedingt als sicher einordnen,
du solltest dir vielleicht mal PDO ansehen.
Syntaxfehler is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Windows Update Funktioniert nicht
06/17/2012 - Technical Support - 0 Replies
Kann mir wer helfen was da los ist , wieso kann ich die nicht runterladen nur lauter fehler und das sind Sicherheitsupdates für Windows 7. PS: Meine Version ist noch nicht Aktiviert worden , liegt es vielleicht daran ? http://i.epvpimg.com/ycwyb.jpg PS: Und kann mir jemand bei diesem Beitrag helfen http://www.elitepvpers.com/forum/technical-support /1948760-aoe-iii-fehlerhafte-installation.html
/warp.... Befehl nicht funktioniert /command doesn't work
04/19/2012 - Metin2 Private Server - 0 Replies
Hi guys & grls, i have problem with command /warp ,..... Any "warps" teleports to the same place, just where I stand. syser server : first test: SYSERR: Apr 16 19:20:18 :: WarpSet: cannot find map location index 0 x 91110000 y 91110000 name admine scnd test: SYSERR: Apr 16 19:25:15 :: Process: SEQUENCE 461eb500 mismatch 0xaf != 0x0 header 254 SYSERR: Apr 16 19:25:15 :: Process: SEQUENCE_LOG -------------
/warp.... Befehl nicht funktioniert /command doesn't work
04/16/2012 - Metin2 Private Server - 0 Replies
Hi guys & grls, i have problem with command /warp ,..... Any "warps" teleports to the same place, just where I stand. syser server : first test: SYSERR: Apr 16 19:20:18 :: WarpSet: cannot find map location index 0 x 91110000 y 91110000 name admine scnd test: SYSERR: Apr 16 19:25:15 :: Process: SEQUENCE 461eb500 mismatch 0xaf != 0x0 header 254 SYSERR: Apr 16 19:25:15 :: Process: SEQUENCE_LOG -------------
Send Befehl funktioniert nicht
10/06/2010 - AutoIt - 4 Replies
Hallo Community, Habe ein kleines Problem und zwar mit dem Send Befehl. Auf meinem ersten Rechner funktioniert das Script einwandfrei. Nun wollte ich das Script auf meinem Acer Notebook (Vista Home) nutzen. Im Windows erkennt er den Send Befehl aber in einer 3D Anwendung nicht.



All times are GMT +1. The time now is 05:41.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.