Karlos Posted November 9, 2008 Posted November 9, 2008 I Suddenly Got This And Im Not Sure Why :? Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/cursed/public_html/itembuy.php on line 40 Heres Line 30-45 if($itemd['itmbuyable'] == 0) { print "This item can't be bought!"; $h->endpage(); exit; } $price=($itemd['itmbuyprice']*$_POST['qty']); item_add($userid, $_GET['ID'], $_POST['qty']); $db->query("UPDATE users SET money=money-$price WHERE userid=$userid"); $db->query("INSERT INTO itembuylogs VALUES ('', $userid, {$_GET['ID']}, $price, {$_POST['qty']}, unix_timestamp(), '{$ir['username']} bought {$_POST['qty']} {$itemd['itmname']}(s) for {$price}')"); $s = ($_POST['qty'] == 1) "" : "s"; echo sprintf("You bought %s %s%s for \$%s", number_format($_POST['qty']), stripslashes($itemd['itmname']), $s, number_format($price)); } } $h->endpage(); ?> Thanks In Advanced :-) Quote
Karlos Posted November 9, 2008 Author Posted November 9, 2008 Re: [HELP REQUIRED] itembuy.php Thanks Illusions For Help Sorting This :-D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.