Page 1 of 1

questions about MySQL, (setting name and value)

Posted: Sun Dec 10, 2006 2:47 am
by Mythic Fr0st
ok, im trying to use PhpMyAdmin to create a table called monsters
Q1: now, for each monster I have, I want it to have the name of the monster, (and a value, 1,2,3,4 etc..)

now, im gunna calculate stats off the value from that

so before a battle

$strlvlmon=the name of the monster here, and get the value for it...

so say im fighting a baby elf...

I click attack, it sets $strlvlmon = (finds the name in MySQL database for baby elf, then sets str lvl = that number * 4)

however I have no idea how to do this...

Im really confused,

for example while im waiting for a response, i'll be trying to create a basic database with character info on it, (E.G, strlvl = 9)
(str dmg=1)

etc.. through it all, but I dont know how to set values to them :(

Posted: Sun Dec 10, 2006 3:09 am
by feyd
You've already got a thread or five on this topic.

Image