<?php header("Content-type: text/html; charset=utf-8"); $host='127.0.0.1'; $user='root'; $password=''; $database='mydatabase'; $con=mysql_connect($host,$user,$password,$database); //mysqli_query($con,"set names utf8"); $ss = "SELECT * FROM passenger"; $result = mysql_query($con,$ss) //or die(mysql_error()); //if(!$result){ //echo "Could not successfully run query ($result) from DB: " . mysql_error(); // exit; //} for($i=0;$i< mysql_num_rows($result);++$i){ $row = mysql_fetch_assoc($result); echo "<br> WIFIAPTag: ". $row["WIFIAPTag"]. " passengerCount: ". $row["passengerCount"]. " timeStamp:" . $row["timeStamp"]; } mysqli_close($con); ?>
慕田峪3555374
玖辛奈
慕的地6079101
Yirrran
qq_海蓝星_0
慕田峪1134683
Linda_Je