ok........... so like php is murder and one day i was like i want to create a game website............ so i was like yay lets create one....... when i started i had about 3 weeks of HTML lessons from my intro to info tech class... so ya i suck at all this lol
but thanks to google and annoying LOTS of expert programmers i can officially call myself a noob 😃 which means i have a LITTLE TINY bit of knoledge for PHP lol
n e ways..................... im creating this totally awsome game site right...... and actaully if you can.. look at it cuz it will help this question ALOT
its ummmmmmmm.... http://planez.orgfree.com
if you dont want ot make ur own account you can use mine
Username: lalalala
Password: letmein
then click "Infrastructure" on the left panel part.....
then you get this totally cool looking stuff......... the top part outputs the data from the database..... i know its totally awsome lol
if you decided to make ur own account... you dont have a wing so it will be blank for you.... or full of zeros.......... if you want to see a number click create wing and make one and then look and wala you ahve buildings.. ok so im totally happy i got that working
ok so moveing on.... on the bottom there is a form... where you can modify your infrastructure.......... thast what im trying to get working.......
this is what i WANT to do...........
you have your Construct button... and Destroy button........ then under it you have your field you fill out.......
so what i want to do... is name each field...... like this Amount1, Amount2, Amount3, and so on............. and then you enter the ammount you want "#" into the text field...........
then you press construct.... to add that into the databse and destory to subtract it........ so like lets say........... you want to build 5 command centers and 8 government buildings........ so you enter those into the text fields... then press construct... and the construct portion would look somthing like this
PS: Command center = CC1 in the databse... and Government building = GB1 in the database.....
so it would look like this:
[Construct] <---- thats your button
CC1 = CC1 + Amount1
GB1 = GB1 + Amount2...
get it? so thwats what i want it to do....... can anyone pls tell me like would this be a query? or how would i code that................. ok thanks for reading if you think you can help leave a msg here or add my msn....... poliastin@hotmail.fr
ok bye thanks 😃