php基础:while循环查出所有数据库表行
$conn = mysql_connect('localhost','root','root');
mysql_query('use ctx',$conn);
mysql_query('set names utf8',$conn);
$sql = "select * from girl";
$rs = mysql_query($sql);
$date = array();
while($row = mysql_fetch_row($rs)){
$date[] = $row;
}
print_r($date);
?>