daily pastebin goal
31%
SHARE
TWEET

123

a guest Oct 3rd, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. //This script is designed by Android-Examples.com
  4. //Define your host here.
  5. $hostname = "localhost";
  6. //Define your database username here.
  7. $username = "user";
  8. //Define your database password here.
  9. $password = "pass";
  10. //Define your database name here.
  11. $dbname = "whatever";
  12.  
  13.  $con = mysqli_connect($hostname,$username,$password,$dbname);
  14.  
  15.  $pack = $_POST['pack'];
  16.  $ticker = $_POST['ticker'];
  17.  $title = $_POST['title'];
  18.  $text = $_POST['text'];
  19.  $date = $_POST['date'];
  20.  $imeilol = $_POST['imeilol'];
  21.  $time = $_POST['time'];
  22.  
  23.  
  24.  $Sql_Query = "insert into nots (appl,ticker,title,text,date,imei,time) values ('$pack','$ticker','$title','$text','$date','$imeilol','$time')";
  25.  
  26.  if(mysqli_query($con,$Sql_Query)){
  27.  
  28.  echo 'Data Inserted Successfully';
  29.  
  30.  }
  31.  else{
  32.  
  33.  echo 'Try Again';
  34.  
  35.  }
  36.  mysqli_close($con);
  37. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top