nafetski Posted January 14, 2008 Share Posted January 14, 2008 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! Quote Link to comment https://forums.phpfreaks.com/topic/85855-another-really-hard-and-stupid-question/page/2/#findComment-439255 Share on other sites More sharing options...
HazelRah Posted January 15, 2008 Author Share Posted January 15, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/85855-another-really-hard-and-stupid-question/page/2/#findComment-439740 Share on other sites More sharing options...
nafetski Posted January 15, 2008 Share Posted January 15, 2008 Which part are you unsure about? Quote Link to comment https://forums.phpfreaks.com/topic/85855-another-really-hard-and-stupid-question/page/2/#findComment-439995 Share on other sites More sharing options...
pocobueno1388 Posted January 15, 2008 Share Posted January 15, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/85855-another-really-hard-and-stupid-question/page/2/#findComment-440013 Share on other sites More sharing options...
HazelRah Posted January 15, 2008 Author Share Posted January 15, 2008 I am attempting :| Quote Link to comment https://forums.phpfreaks.com/topic/85855-another-really-hard-and-stupid-question/page/2/#findComment-440029 Share on other sites More sharing options...
revraz Posted January 15, 2008 Share Posted January 15, 2008 So post your read and write script and the problem. Quote Link to comment https://forums.phpfreaks.com/topic/85855-another-really-hard-and-stupid-question/page/2/#findComment-440030 Share on other sites More sharing options...
nafetski Posted January 15, 2008 Share Posted January 15, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/85855-another-really-hard-and-stupid-question/page/2/#findComment-440180 Share on other sites More sharing options...
revraz Posted January 15, 2008 Share Posted January 15, 2008 You may want to go back and read some posts, we're talking about .txt / flat files, not MySQL. Quote Link to comment https://forums.phpfreaks.com/topic/85855-another-really-hard-and-stupid-question/page/2/#findComment-440185 Share on other sites More sharing options...
nafetski Posted January 15, 2008 Share Posted January 15, 2008 Probably easier to use MySQL - and more flexible for future applications. Quote Link to comment https://forums.phpfreaks.com/topic/85855-another-really-hard-and-stupid-question/page/2/#findComment-440188 Share on other sites More sharing options...
revraz Posted January 15, 2008 Share Posted January 15, 2008 We mentioned that on the first page as well. Quote Link to comment https://forums.phpfreaks.com/topic/85855-another-really-hard-and-stupid-question/page/2/#findComment-440197 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.