Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2.     $username = $_GET['username'];
  3.     $password = $_GET['password'];
  4.     $mysqli = new mysqli('localhost', 'root', 'no', 'shippr');
  5.  
  6.     // check login
  7.  
  8.     $loggedIn = 1;
  9.     if ($loggedIn) {
  10.         if ($mysqli->prepare("INSERT INTO shipping VALUES (0, '".$_POST['trackingnumber']."', '".$_POST['shipper']."', '".$_GET['username']."', 'no')")) {
  11.             echo "yes";
  12.         }
  13.     }
  14.     $stmt->close();
  15.     $mysqli->close();
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement