Advertisement
Guest User

Untitled

a guest
Oct 6th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2. $servername = "localhost"; $username = "root"; $password = "";
  3. $dbname = "kurd";
  4. mysql_connect("localhost","root","","kurd") or die ("not connect data base");
  5. mysql_select_db("kurd") or die ("no found table");
  6. if(isset($_POST['submit'])){
  7. $name = $_POST['name'];$lastname = $_POST['lastname'];
  8. $password =_POST['password'];
  9. $query =" INSERT INTO kurdstan (name,lastname,password) VALUES ('$name','$lastname','$password')";
  10. if(mysql_query($query)){
  11. echo "<h3>THANKS FOR INSERT DATA GOOD LUCK</h3>";
  12. }
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement