<?php
$conn=mysql_connect( "127.0.0.1 ", "root", "");
mysql_select_db("phpwind");
mysql_query("set names gbk");
$sql= "select * from table";
$result=mysql_query($sql);
while($rs=mysql_fetch_array($result))
{
echo $rs[id]."<br>";
}
mysql_close($conn);
?>