Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('../../corelib.php');
- class AMFShopping {
- public function __construct() {
- $this->dbConnection = getDBConnection();
- }
- public function addOrder($faceURL, $textureID, $userID) {
- $query = 'INSERT INTO rmd_orders (face_url, texture_id, user_id, payment) VALUES (?, ?, ?, ?)';
- $statement = $this->dbConnection->prepare($query);
- $statement->bind_param('siii', trim($faceURL), trim($textureID), trim($userID), 0);
- if ($statement->execute()) {
- return true;
- } else {
- return false;
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement