here is the sql query: UPDATE cps From characters WHERE username='usernamehere' Set cps += 100
Is that even correct MySQL syntax..?
Code:
UPDATE `characters` SET `cps` = `cps` + 100 WHERE `username` = 'MyUserName'
Edit: Also, that script is complete ****. You're not even cleaning the content of the user input before passing it to MySQL. That's an SQL injection waiting to happen. ALL user input should AT LEAST be run through mysql_real_escape_string before even THINKING of passing it to the database...
Anyway, elaborate more on what you're trying to do, and I may help you.
UPDATE `characters` SET `cps` = `cps` + 100 WHERE `username` = 'MyUserName'
Edit: Also, that script is complete ****. You're not even cleaning the content of the user input before passing it to MySQL. That's an SQL injection waiting to happen. ALL user input should AT LEAST be run through mysql_real_escape_string before even THINKING of passing it to the database...
Anyway, elaborate more on what you're trying to do, and I may help you.
Ughh still had the select query in my head, was close tho.
His code will not work anyways. He's missing a bracket.
The rest is working though.
Quote:
Originally Posted by Zeroxelli
Is that even correct MySQL syntax..?
Code:
UPDATE `characters` SET `cps` = `cps` + 100 WHERE `username` = 'MyUserName'
Edit: Also, that script is complete ****. You're not even cleaning the content of the user input before passing it to MySQL. That's an SQL injection waiting to happen. ALL user input should AT LEAST be run through mysql_real_escape_string before even THINKING of passing it to the database...
Anyway, elaborate more on what you're trying to do, and I may help you.
I do not wanna give 100 but my own value. Just like the same of changing the password.
I know I can just sqlinject it. But I also wanna do that through the website. I don't wanna add the same every time. Just my OWN value that changes every time.
I know I can just sqlinject it. But I also wanna do that through the website. I don't wanna add the same every time. Just my OWN value that changes every time.
Do you get E-Mail to change User Datas? 05/22/2012 - DarkOrbit - 4 Replies Can anyone of you please try, if you get an E-Mail if you want to change the Password, Username or E-Mail Adress?
I tryed it more then once and I never get any E-Mail to confirm the changes!
Earlier I always got the E-Mail after max. 1 minute..
I have an E-Mail at >> Windows Live <<.
So anyone who can try it ? Thanks :)
[Name Change] niedrigere Preise für NonPremium User 05/15/2012 - Off Topic - 8 Replies Moin moin,
ich bin der Meinung, dass der Name Change zu überteuert ist! Klar, kostenlos geht es nicht und da bin ich auch überhaupt nicht für, aber der Preis, für User die kein Premium besitzen, ist einfach viel zu hoch! Da für das Forum bzw. die Adminstration (keinerlei) Arbeit anfällt und es sonst auch nicht viele Umstände macht. Wie ist eure Meinung dazu? Soll der Preis gesenkt werden?
Momentaner Stand:
http://www.fotos-hochladen.net/uploads/unbenannt1 kfhcbsi4a.png
Any way to change my 2moons user ID 03/26/2010 - Dekaron - 4 Replies Topic says it all
Wondering if there is anyway to change the User ID to something esle or is it impossible?
how change user and password Datebase in binary 5065 07/24/2009 - CO2 Private Server - 3 Replies can any one tell me how change user name and password in binary tq 5065
any one know user test password test
how change it??????? help
model change als Mac User? 10/27/2007 - World of Warcraft - 0 Replies Nun ich wollte eigentlich schon lange mal meinen Menschen Krieger in einen Tauren krieger verwandeln allerdings hab icha uch nach langer langer LANGER suche nichts gefunden was mir weiterhelfen könnte.
Da ich keine Programme gefunden habe welche ich als Mac User benützen kann um model changes vorzunehmen.
Eventuell kann mir da jemand von euch weiterhelfen oder hat eine Idee.
mfg rul