Okay, this is like an automated eregi_replace thing... You can buy the "Post Upgrade" in the shop and this code is supposed to check to see if you have purchased the item and then echo the regex part. but it does not. Any suggestions?
$shopitem1 = mysql_query("SELECT * FROM shopitem");
while ($shopitem = @mysql_fetch_array($shopitem1)) {
$itemval = ''.$shopitem['value'].'';
$shopitem2=@mysql_num_rows(mysql_query("SELECT * FROM shopbuy WHERE userid = ".$u['userid']." AND item = '".$shopitem['id']."'"));
if ($shopitem2 >= 1) { $itemval; }
}