Created
February 2, 2019 03:13
-
-
Save Whatdapep/384e7f8121406db8cf32913a0bcf065b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Create connection | |
| $conn = mysqli_connect("localhost", "root", "","mydb"); | |
| mysqli_set_charset($conn,"utf-8"); | |
| if ($conn->connect_error) { | |
| echo "error connection database or mysql". $conn->connect_error; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment