ok when a user logs in to my site he or she is taken to a page where they can preview mp3 that they might would like to download. when they click the download button my php script checks if they can download the mp3. each user can download 5 beats per month. if the user has 5 downloads left, the script updates the database like this
$q=mysql_query("UPDATE user_info SET mdr = '4' WHERE username = '$y'");
but if the user for some reason has to download the mp3 again he will lose a download.
so to stop this each mp3 will have an ID number. so when the user downloads an mp3 its ID will be saved in a field called paidbeats
. the script will look at the database and check if the user has downloaded the mp3 already; if so, the user will not be charged to download it again. how would i go about doing this, say, if the user paid for an mp3 with the id number 10015 and then the next day he buys 1526. how could i store multiple IDs in one field, or is there a better way of doing this?