Created
February 7, 2018 09:53
-
-
Save amrrashed/76bd19de3e6349aa5f3e8abda85e11a6 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 | |
| define('dbhost','localhost'); | |
| define('dbname','scholararchive'); | |
| define('dbpw','123456'); | |
| define('dbuname','root'); | |
| define('$conn','0'); | |
| $conn =mysqli_connect(dbhost,dbuname,dbpw,dbname); | |
| mysqli_select_db($conn,dbname); | |
| if (mysqli_connect_errno()) { | |
| echo 'Connect failed' . mysqli_connect_error(); | |
| } | |
| mysqli_query($conn,"set character_set_server 'utf8'"); | |
| mysqli_query($conn,"SET NAMES 'utf8'"); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment