hmm.. double registering..

C++, C#, Java, PHP, ect...
Post Reply
tomtefan
Posts: 46
Joined: Tue Jun 22, 2010 12:46 pm

hmm.. double registering..

Post by tomtefan »

Is it possible for me to do that ?

Iam more or less just missing pvp area in my game.

Now i have an idea wich gives me more control over fights, so i can balance them easier.
And since iam not that high on php, this idea makes it easier for me to overview things.

When a player register, it ends up in DB under: Players
Can i make it a double entry in the DB from one registering. ?

I want to have the player stats under Playermonster also.

And aswell when someone buys a weapon / armor or what ever, it make a double entry under similar tags
Playermonsterweapon, Playermonsterarmor, etc.


I tried this.

This is the Main line. from reguser.php (its working).
$SQL = "INSERT into players(name, password, email, blablablabla...

I tried to make it a double by just putting this under the line above.. (didnt work) =P
$SQL = "INSERT into playermonster(name, password, email, blablablabla...

i also tried:
$SQL = "INSERT into players AND playermonster (blablablabla... didnt work either hehehe


Its probably something easy, but i dont see it :lol:
User avatar
Torniquet
Posts: 869
Joined: Sun Aug 02, 2009 6:18 am

Re: hmm.. double registering..

Post by Torniquet »

all depends on how your playermonsters table is layed out.

if it is a copy of your players table.. then you should be able to insert as normal.

if not, then modify the insert query to match that of the playermonster table.
New Site Coming Soon! Stay tuned :D
tomtefan
Posts: 46
Joined: Tue Jun 22, 2010 12:46 pm

Re: hmm.. double registering..

Post by tomtefan »

hmm, maybe i missed something there.. have to take a look at that again.

ty for info :D


EDIT:

YEY, its working.
Post Reply

Return to “Coding”