techiefreak05 Posted August 14, 2006 Share Posted August 14, 2006 hi, id like to add a "currency" from my site.. i know it will have to deal with MySQL DB's and such..any ideas on how to start.. like how to add a number to a number in a DB? IDK im just looking into it.Thanks in advance Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 14, 2006 Share Posted August 14, 2006 add a "currency" from my site? Please explain. Quote Link to comment Share on other sites More sharing options...
techiefreak05 Posted August 14, 2006 Author Share Posted August 14, 2006 a currency.... "money" on my site... lets say, they upload a picture, for doing so they will get X amount of points.. and they can use tose points to "purchase" extra features.. or t-shirts/hats and other items. Quote Link to comment Share on other sites More sharing options...
hackerkts Posted August 14, 2006 Share Posted August 14, 2006 Below the script where they successfully uploaded a picture, add the query which add points into your database.Example:[code]<?phpmysql_query("UPDATE members SET points='10' WHERE id='1'") or die(mysql_error());?>[/code]Ofcourse it will not be working, its just an example.Btw... You need to do a sql query before that, and take the current point then add X's vaule into it. Quote Link to comment 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.