Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Koneksi
- $con=mysqli_connect("localhost","root","password"); // your sql setting, if there's no password, dont type it, keep it blank
- $select = mysqli_select_db($con,"your_database");
- //Check connection
- if(!select)
- {
- echo "Failed to Connect to SQL: ".mysqli_connect_error();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment