<!DOCTYPE html> <head> <meta charset="UTF-8" /> <title>猫</title> </head> <body> <?php require('calldata.php'); $result = mysql_query("SELECT y,a FROM mf where y=2012"); while ($row = mysql_fetch_assoc($result)) { print($row['a']); } mysql_close($link); ?> </body> </html>