trying to make energy for game (php mysql)
Posted: Wed Apr 21, 2010 9:08 am
Hello,im beginner with php and mysql,and i have an game,im testing my skills on it etc,but i have problem,i want to make an energy,that it will update the energy with 5 on every 15 mins(for that im using cron jobs,i know how to use them),but i dont know how to make it
i want to make it like
it will add 5 energy into the energy column or smth,and the old one stays,so if it was 10,it will be 15.
and if its more then 100,it will put it to 100.
thanks,my english is kinda bad so yeah,i really would be happy if someone could help me and teach me it.
i want to make it like
it will add 5 energy into the energy column or smth,and the old one stays,so if it was 10,it will be 15.
and if its more then 100,it will put it to 100.
thanks,my english is kinda bad so yeah,i really would be happy if someone could help me and teach me it.