<?php
$con=mysql_connect("localhost:3306","root","123456");
mysql_select_db("my_db",$con);
$rs=mysql_query("SELECT * FROM person");
while($rst=mysql_fetch_array($rs))
{
echo "姓名:".$rst['Name']."=====年纪:".$rst[2];
}
$con=mysql_connect("localhost:3306","root","123456");
mysql_select_db("my_db",$con);
$rs=mysql_query("SELECT * FROM person");
while($rst=mysql_fetch_array($rs))
{
echo "姓名:".$rst['Name']."=====年纪:".$rst[2];
}
?>