Thread: Need PHP help
View Single Post
  #1 (permalink)  
Old 2006-04-12, 05:53 AM
Scarum Scarum is offline
Junior Member
 
Join Date: Apr 2006
Location: Turn left at Mars, and you're on the right planet
Posts: 1
Scarum is on a distinguished road
Default Need PHP help

I've been fiddling with programming for a long time. Now I think I'm ready to put everything I know into practice. Basically, I've designed a chunk of the first test of my new game (What I call the 'Alpha Core'), including the installation, the connecting script to the database, the incomplete index page,two shops, and a place where you can kill the monsters. But, this being a turn-based game, I've encountered my first of two problems. Crons. I would like someone to please post a reply containing a cron that runs these lines every day around midnight:
Quote:
$getturns="Update user index set turns=turns+50";
$getturns2=mysql_query($getturns) or die("Could not get turns")
Oh, and I also have another problem. The inventory. Could someone please post an example of an inventory script as well, please? I realise I'll probably have to change the installation file to do that, and if so, could whoever posts the inventory script also post the changes that need to be made to other files, please?
Thanks,

Scarum.
__________________
Hmmm. Stay fuzzy, save the world... Choices. Oh alright fine! We'll save the world! But do it quickly before I change my mind! ~Daxter

You know, my momma used to read me bedtime stories about Mar when she'd tuck me in. She'd give me a nice glass of warm yakow milk... and my little Poopsy bear. ~Sig
Reply With Quote