Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $link = mysqli_connect("127.0.0.1", "dbadmin", "p9zzW@", "contacts");
- if (!$link) {
- die("Error! Can't connect to the database!");
- } else {
- $query = "INSERT INTO contacts VALUES (11, 'Efren', 'Sumalabe',
- '71 Marquinton St., Fortune', 'Pasay City', '', '', '', '')";
- $result = mysqli_query($link,$query);
- if ($result) {
- die("Success!");
- } else {
- die("Error!");
- }
- }
- mysqli_close($link);
- ?>
Add Comment
Please, Sign In to add comment