vForums Support > Programming & Coding :: Programming Discussion :: > Php question
Php question - Posted By Jake (jake) on 27th Mar 08 at 6:55pm
I'm making a website called killpeeps.. (Yes, I know it's an odd name) Anyways, everytime a NEW visitor comes and clicks a button/link, a number gets higher, example:
I go to www.KillPeep.com/killapeep.php (FAKE)
It has a button on it that says "KILL A PEEP", and when the NEW visitor comes and clicks that, it brings them to a screen on www.KillPeep.com/peepkilled.php which says how many peeps that have been killed, including the one you killed.. lol I know it' odd again but yeah.
Re: Php question - Posted By Michael (wrighty) on 27th Mar 08 at 6:59pm
So it's a collective thing?
What I would do is set a cookie when the person clicks the button, then do the 'php' part.
Also, to 'show' just 1 field in a database!
Re: Php question - Posted By Jake (jake) on 28th Mar 08 at 4:48pm
Well, I don't know cookies very well, do you know anywhere I can learn?
I'll try W3Schools or Tizag - but thanks Wrighty.
Re: Php question - Posted By Michael (wrighty) on 28th Mar 08 at 5:29pm
ye, try w3schools!
Re: Php question - Posted By Jake (jake) on 28th Mar 08 at 5:37pm
Nevermind, I have a better idea, i'll put a stat counter on the peepkilled.php page! For every unique visitor..