Advertisement
Guest User

Untitled

a guest
May 29th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2.    
  3.     require_once('../../corelib.php');
  4.    
  5.     class AMFShopping {
  6.        
  7.         public function __construct() {
  8.            
  9.             $this->dbConnection = getDBConnection();
  10.         }
  11.        
  12.         public function addOrder($faceURL, $textureID, $userID) {
  13.            
  14.             $query = 'INSERT INTO rmd_orders (face_url, texture_id, user_id, payment) VALUES (?, ?, ?, ?)';
  15.                
  16.             $statement = $this->dbConnection->prepare($query);
  17.             $statement->bind_param('siii', trim($faceURL), trim($textureID), trim($userID), 0);
  18.                
  19.             if ($statement->execute()) {
  20.                 return true;
  21.             } else {
  22.                 return false;
  23.             }
  24.         }
  25.        
  26.     }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement