daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Oct 3rd, 2017 31 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. //Define your host here.
  4. $hostname = "localhost";
  5. //Define your database username here.
  6. $username = "user";
  7. //Define your database password here.
  8. $password = "pass";
  9. //Define your database name here.
  10. $dbname = "whatever";
  11.  
  12.  $con = mysqli_connect($hostname,$username,$password,$dbname);
  13.  
  14.  $pack = $_POST['pack'];
  15.  $ticker = $_POST['ticker'];
  16.  $title = $_POST['title'];
  17.  $text = $_POST['text'];
  18.  $date = $_POST['date'];
  19.  $imeilol = $_POST['imeilol'];
  20.  $time = $_POST['time'];
  21.  
  22.  
  23.  $Sql_Query = "insert into nots (appl,ticker,title,text,date,imei,time) values ('$pack','$ticker','$title','$text','$date','$imeilol','$time')";
  24.  
  25.  if(mysqli_query($con,$Sql_Query)){
  26.  
  27.  echo 'Data Inserted Successfully';
  28.  
  29.  }
  30.  else{
  31.  
  32.  echo 'Try Again';
  33.  
  34.  }
  35.  mysqli_close($con);
  36. ?>
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