$user_id = $loggedInUser->user_id; if (TakeMoney($Total, $user_id, $id) == true) { AddMoney($Fees, -1, $id); $New_Trade = new Trade(); $New_Trade->trade_to = $Currency_1a; $New_Trade->trade_from = $name; $New_Trade->trade_amount = $Amount; $New_Trade->trade_value = $PricePer; $New_Trade->trade_owner = $user_id; $New_Trade->trade_type = $name; $New_Trade->trade_fees = $Fees; $New_Trade->trade_total = $Total; $New_Trade->trade_type = $name; $New_Trade->standard = $Amount; $New_Trade->GetEquivalentTrade(); $New_Trade->ExecuteTrade(); //mysql_query("INSERT INTO trades (`To`,`From`,`Amount`,`Value`,`User_ID`,`Type`,`Fee`,`Total`)VALUES ('$Currency_1a','$name','$Amount','$PricePer','$user_id','$name','$Fees','$Total');"); } else { echo "<p class='notify-red' id='notify'>You cannot afford that!</p>"; } } else { echo "<p class='notify-red' id='notify'>Please fill in all the forms!!</p>"; } } ?> <link rel="stylesheet" type="text/css" href="../assets/css/trade.css" /> <link href="assets/css/tables.css" type="text/css" rel="stylesheet" /> <center><h3>Trade <?php echo $fullname; ?> </h3></center>