Created
March 1, 2016 03:22
-
-
Save peerapongsam/2d8c6b2dbf79b04c9e2c to your computer and use it in GitHub Desktop.
mysql_test.php
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 | |
$conn = mysqli_connect('localhost', 'root', '12345678', 'test'); | |
mysqli_set_charset($conn, 'utf8'); | |
$result = mysqli_query($conn, 'SELECT * FROM province;'); | |
if ($result) { | |
while ($row = mysqli_fetch_assoc($result)) { | |
echo $row['PROVINCE_NAME'].'<br>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment