Jump to content

Archived

This topic is now archived and is closed to further replies.

techiefreak05

adding a "currency" to my site.. some simple questions

Recommended Posts

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

Share this post


Link to post
Share on other sites
add a "currency" from my site? Please explain.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Below the script where they successfully uploaded a picture, add the query which add points into your database.

Example:
[code]<?php
mysql_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.

Share this post


Link to post
Share on other sites

×

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.