标签:
<?php
$connect = mysqli_connect(‘localhost‘,‘root‘,‘‘,‘intertrading‘) or die(‘Unale to connect‘);
$sql = "select * from user";
$result = mysqli_query($connect,$sql);
while($row = mysqli_fetch_row($result)){
echo ‘id:‘.$row[0];
echo ‘<br>‘;
}
mysqli connect database and print
标签:
原文地址:http://www.cnblogs.com/hjxcode/p/5635416.html