include 'connect.php'; $sql="SELECT * FROM `rwgl`.`rwb`"; mysql_select_db($mysql_database,$conn); $query=mysql_query($sql,$conn) or die("错误"); while ($row=mysql_fetch_array($query)){ $i++; ?>
} ?> mysql_close($conn); ?>
結果:
1 aa bb 2013-04-19 2013-05-01 100 0 1 cc dd 2013-04-19 2013-05-01 100 0 1 ee ff 2013-04-1 9 2013-05 -01 100 0 1 gg jj 2013-04-19 2013-05-01 100 0