Jump to content


Photo

Information to Database


  • Please log in to reply
2 replies to this topic

#1 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 25 October 2006 - 06:09 PM

Hello everyone, I have a question to ask. What I have on my website is a battling system, since the site is an MMORPG, you basically battle others and monsters I've created. What my question is, for the opponent to see the battle, I'd have to figure out some way to insert every line of battle into the database to display it for the opponent, so he/she can see what happened during the battle. The battle is pre-generated by your stats/skills and basically is done for you. It's unique in it's own way :P

But anyhow, how can I make it so, everytime something happens it just puts it into the database? Or, can I just make a DIV tag or something wrapped around it, and have it copy all the data from there and put it into the database after it's generated?

If I've confused you, sorry.. just ask for anything you need.

#2 jwk811

jwk811
  • Members
  • PipPipPip
  • Advanced Member
  • 714 posts

Posted 25 October 2006 - 07:19 PM

im a little confused as to what your trying to do here? if you want to add information to a database depends on something that happens you can use the if statment and the INSERT function.. like if this happens insert this into the database.. if this is what your trying to do let me know and i will try to help you on it..

#3 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 25 October 2006 - 07:38 PM

Hmmn, yeah I'm just trying to figure out an easier way to do it. I'll figure it out, thanks for the reply though :]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users