Location: PHPKode > scripts > PHP Hosting Directory > phphost_directoryv2/include/payments/paypal.php
<?

$amount = mysql_result(mysql_query("SELECT `price` FROM `hsl_price` WHERE `price_id`='".$vars['price_id']."'"), 0, 0);
$username = $_COOKIE['logged'];

mysql_query("INSERT INTO `hsl_order` VALUES ('', '$username', '".$vars['price_id']."', 'Processing', 'Not finished by user', 'paypal', NOW())");
$sequence = mysql_insert_id();

$t->assign('amount', $amount);
$t->assign('order_id', $sequence);

?>
Return current item: PHP Hosting Directory