Simple Problem

General discussions related to php

Moderators: macek, egami, gesf

spherecraft
New php-forum User
New php-forum User
Posts: 3
Joined: Mon Jul 15, 2013 5:09 am

Simple Problem

Postby spherecraft » Mon Oct 07, 2013 5:34 am

Hello Php Forums!

I have a script that has point system. and if you have enough points you can get rewards example
usb,tshirts etc..

i already done the function when the user redeem his/her points will be deducted based on how much points is needed to redeem that item.
now i have a problem,

i want to display the redeem items name on his/her profile page.
how can i do it?

EXAMPLE STRUCTURE OF THE TABLES:
rewards
rewardid | rewardname | price

1 | USB | 10

USERS
userid | username | points | password |redeemed

1 | code | 500 | 4141414141 | ?????

THANKS!

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Simple Problem

Postby johnj » Mon Oct 07, 2013 10:35 pm

pick the redeemed item and show it on his/her page


Return to “PHP General”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest

cron