Hey, quick question, how would i use INSERT for a submit button? like on submit insert 'username', 'offername', 'date' VALUES '$usr', '$name', NOW()
and then after that, i would like to so after its submit it wouldnt show up on their page anymore, this is the current code i have to show offers:
something like where it checks the table pending for their username and if it is found it gets ID and removes the offer with that ID from their page?? sounds really confusing to me..
and then after that, i would like to so after its submit it wouldnt show up on their page anymore, this is the current code i have to show offers:
Code:
<? $get_name = mysql_query("SELECT `id`, `name`, `link`, `value`, `description` from `offers` WHERE `countries` like '%us%' ORDER BY id DESC LIMIT 0, 25"); while($namerow = mysql_fetch_array($get_name)) { $id = $namerow["id"]; $link = $namerow["link"]; $name = $namerow["name"]; $amount = $namerow["value"]; $desc = $namerow["description"]; ?> <center><b><a href="<?=$link?><?=$usr?>" target='_blank'><?=$name?></a></b> <br><?=$desc?> <br><b><strong>Payout: <?=$amount?> Points</b></strong></center> <br><hr color="035096"><br> <? }?>
Comment