Jump to content

Recommended Posts

http://www.freewebmasterhelp.com/tutorials/phpmysql

 

This is a great PHP/MySQL tutorial.  Spend an hour going through it (and understanding it) and you will have no problem implementing your newfound knowledge into this project.

 

Any of us who have responded could simply write the code for you, but then you'll just come back asking for more and more "help" (handouts).  We're here to teach you to fish!

http://www.freewebmasterhelp.com/tutorials/phpmysql

 

This is a great PHP/MySQL tutorial.  Spend an hour going through it (and understanding it) and you will have no problem implementing your newfound knowledge into this project.

 

Any of us who have responded could simply write the code for you, but then you'll just come back asking for more and more "help" (handouts).  We're here to teach you to fish!

 

Actually lol, this is the only thing i need done. But i have gone through the site, read like every page. I now now quite a bit. But i'm still unsure how to do this.

Actually lol, this is the only thing i need done. But i have gone through the site, read like every page. I now now quite a bit. But i'm still unsure how to do this.

 

Could you at least attempt to do what you want? Then along the way we can help you with whatever your having trouble with.

Alright, maybe a little bit more input will get you going in the right direction.

 

Are your users logging in to do this?  Or is it public and anybody can click on the image?

 

If it's just one public place where anybody can click the image, then posting the results to the DB is easy...after each successful click have it

 

 

First you will want to

 

1) "connect to the database"

 

THEN you are going to

 

2) INSERT INTO something (like your table name) an (amount, username) with the VALUES of (the amount, the username)

 

Then after that you will want to do a query (search, retrieve) where you

 

3) SELECT SUM(amount) as amount FROM counter

 

That's all I'm giving you, you can figure out the rest.  If you run into syntax errors, google them...if you get stuck, post what you are stuck on here.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.