日期:2014-05-17 浏览次数:20461 次
$link=mysql_connect("localhost","root") or die("fail".mysql_error()); mysql_select_db('first',$link) or die('faill'.mysql_error()); $query_pag_data = "SELECT acc from test"; $result_pag_data = mysql_query($query_pag_data) or die('MySql Error' . mysql_error()); while ($row = mysql_fetch_array($result_pag_data)) { //在这里使用$row['acc'] }