Advertisement
Guest User

Untitled

a guest
Dec 18th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $host = 'localhost';
  2. $username = 'b**s';
  3. $password = '1******m';
  4. $dbname = 'b*********e';
  5. $connection = new mysqli($host, $username, $password, $dbname);
  6. if ($connection->connect_error) {
  7. die("Connection failed: " . $conn->connect_error);
  8. }
  9.  
  10. function insertData(){
  11. {......}
  12. if($connection->query($sql)){
  13. $response['success'] = 'User record successfully added!';
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement