Jump to content


Photo

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


  • Please log in to reply
3 replies to this topic

#1 techiefreak05

techiefreak05
  • Members
  • PipPipPip
  • Advanced Member
  • 494 posts
  • LocationER, MN

Posted 14 August 2006 - 03:26 AM

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
Link shortener with advanced, detailed statistics:

http://tyny.us/

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 14 August 2006 - 03:35 AM

add a "currency" from my site? Please explain.
Legend has it that reading the manual never killed anyone.
My site

#3 techiefreak05

techiefreak05
  • Members
  • PipPipPip
  • Advanced Member
  • 494 posts
  • LocationER, MN

Posted 14 August 2006 - 03:44 AM

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.
Link shortener with advanced, detailed statistics:

http://tyny.us/

#4 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 14 August 2006 - 06:25 AM

Below the script where they successfully uploaded a picture, add the query which add points into your database.

Example:
<?php
mysql_query("UPDATE members SET points='10' WHERE id='1'") or die(mysql_error());
?>

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.

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users