Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 12:36

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

Advertisement



PHP problem mit Database

Discussion on PHP problem mit Database within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 3
Join Date: Dec 2010
Posts: 1,321
Received Thanks: 243
PHP problem mit Database

Hallo zusammen, ich bin ziemlich neu im PHP und MQSQL.

Momentan schreib ich mein eigenes Browsergame und komme auch relativ gut zurecht. Habe aber seit gestern einen Fehler in der DB und ich weiß nicht wie ich ihn beheben kann

Es geht darum dass wenn sich ein Spieler registriert er sofort 10 Holz 10 Nahrung etc. bekommen soll. Die Sache ist nur das dass er 2 Ids erstellt. Einmal für den Account und einmal für das Holz, Nahrung etc. Also er erstellt zwei Accounts aber den mit den Waren ohne passwort username etc.

Hier ein Bild:





Danke

-Evese
Evese is offline  
Old 01/13/2014, 17:49   #2
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
dann poste mal die sql queries die du ausführst
tolio is offline  
Thanks
1 User
Old 01/13/2014, 17:51   #3
 
elite*gold: 0
Join Date: Dec 2013
Posts: 11
Received Thanks: 4
Die Syntax für das MySQL-Statement ist

Code:
INSERT INTO user SET (username, passwort ...) VALUES ('$username', '$passwort' ...)
was ja direkt bei der Account-Erstellung gemacht werden kann. Allerdings scheint es eher ein Problem in der PHP-Datei zu sein als bei MySQL. Poste mal den Codeausschnitt der die Daten in die Datenbank schreibt.
Nynq is offline  
Thanks
1 User
Old 01/13/2014, 17:52   #4
 
elite*gold: 3
Join Date: Dec 2010
Posts: 1,321
Received Thanks: 243
Gerade gefunden war ein Fehler im Registrations-Script

Danke!
Evese is offline  
Old 01/13/2014, 17:57   #5
 
elite*gold: 0
Join Date: Dec 2013
Posts: 11
Received Thanks: 4
Noch so eine Bemerkung am Rande: MD5 ist für sicherheitstechnische Dinge wie Passworthashs veraltet und es sollte eher SHA + Salt (oder bcrypt) verwendet werden.
Das Passwort deines Users lässt sich sonst ziemlich einfach auf "1234" zurückführen.
Nynq is offline  
Thanks
1 User
Old 01/13/2014, 18:32   #6
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
wenn schon dann richtig:


naja trotzdem sollten bei eigenen projekten zum spaß und lernen erstmal grundlegende funktionsweisen im vordergrund stehen
tolio is offline  
Old 01/13/2014, 22:00   #7
 
elite*gold: 10
Join Date: Jan 2012
Posts: 331
Received Thanks: 47
Quote:
Originally Posted by tolio View Post
wenn schon dann richtig:


naja trotzdem sollten bei eigenen projekten zum spaß und lernen erstmal grundlegende funktionsweisen im vordergrund stehen
reicht nicht einfach:
PHP Code:
md5("blalbliboalsd".$password."dingigodonfaf"); 
ich mein um sowas zu entschlüsseln, viel Glück
Bgzocker is offline  
Reply


Similar Threads Similar Threads
[Problem] Problem with restoring my database
07/05/2012 - Silkroad Online - 0 Replies
Hey Elite pvpers , Lately i was setuping my server on my dedicated server Useing BR source (black rogue) , And when it comes to the part of restoring database bak files , After restoring for the database SRO_VT_ACCOUNT after choosing the bakfile for it and clicking ok i get an error , Googled the error and itt was caused of the bakfiles are Corrupted , Tryed another bakfiles and it worked that means its because the files are damaged , So im looking for the original files that arenot corrupted...
Database cpu problem
08/01/2011 - Rappelz - 9 Replies
dbo.item is using my cpu %100 What is the source of problem and how can ı fix that ? http://img695.imageshack.us/img695/3741/captainq. th.jpg http://img339.imageshack.us/img339/8409/sqlc.th.j pg
Database Problem
04/03/2011 - Flyff Private Server - 3 Replies
Ich hab ein Folgendes problem Mein Server ging Erfolgreich und hat auch alles geklappt aber 3 Tage später ging meine DB nicht mehr und dann musste ich alles neu installieren aber als ich es neu installiert habe und die DB in der SQL Management Studio Batchen will kommen nur noch Fehler was soll ich tuhen? x.x Ich habs auch in der ODBC gelöscht. Ich Hoffe ihr könnt mir helfen =) Danke im Voraus.
DAtabase Problem
11/02/2009 - Metin2 Private Server - 1 Replies
So I started a Metin2 Server... I opened the databse and make account at "account"...After that I goed in 'common" and then "gmlist" and I pu account there too...After that I enter the game put the account stills beeing a normal player...I even rebooted the server but is the same problem...Can soemoene help me?:(



All times are GMT +1. The time now is 12:37.


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.