コード例 #1
0
ファイル: userClass.php プロジェクト: raju99/sparkswap
 function payment_dtatils($item_id, $owner)
 {
     @($payout_email = $_POST['payout_email']);
     @($payout_type = $_POST['payout_type']);
     @($name_on_account = $_POST['name_on_account']);
     @($account_type = $_POST['account_type']);
     @($routing_number = $_POST['routing_number']);
     @($account_number = $_POST['account_number']);
     @($name_on_check = $_POST['name_on_check']);
     @($address_1 = $_POST['address_1']);
     @($address_2 = $_POST['address_2']);
     @($city = $_POST['city']);
     @($state = $_POST['state']);
     @($zip_code = $_POST['zip_code']);
     @($country = $_POST['country']);
     @($desciption_renter = $_POST['desciption_renter']);
     @($phonenumber = $_POST['phonenumber']);
     @($pay = $_POST['total_price']);
     @($droop_date = $_POST['drop_up']);
     @($pick_up = $_POST['pick_up']);
     @($pickup_date = substr($pick_up, 0, 10));
     @($drop_date = substr($droop_date, 0, 10));
     $sql = "insert into user_transactions\tset\towner_id='" . $owner . "',payer_id='" . $_SESSION['user']['id'] . "',phonenumber='" . $phonenumber . "',\titem_id='" . $item_id . "',desciption_renter='" . $desciption_renter . "',name_on_check='" . $name_on_check . "',address_1='" . $address_1 . "',address_2='" . $address_2 . "',city='" . $city . "',state='" . $state . "',zip_code='" . $zip_code . "',country='" . $country . "',payout_email='" . $payout_email . "',payout_type='" . $payout_type . "',name_on_account='" . $name_on_account . "',\taccount_type='" . $account_type . "',routing_number='" . $routing_number . "',account_number='" . $account_number . "',pay='" . $pay . "',payment_date=now()";
     itemClass::setRentRequest($item_id, $owner, $pickup_date, $drop_date);
     $res = mysql_query($sql);
     return mysql_insert_id();
 }