questions about MySQL, (setting name and value)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
Mythic Fr0st
Forum Contributor
Posts: 137
Joined: Sat Dec 02, 2006 3:23 am
Contact:

questions about MySQL, (setting name and value)

Post 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 :(
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You've already got a thread or five on this topic.

Image
Locked