This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text ml; charset=gb2312"> | |
<title>http://www.wzdm.net</title> | |
</head> | |
<body> | |
<?php | |
require_once("db_conn.php");//预加载db_conn.php 看是预加载不是include包含额 页面打开就加载的而且是只加载一次,db_conn.php是连接数据库用的 | |
$sql="select * from message";//列出message表所有字段记录集 | |
$rs=mysql_query($sql);//执行sql得到记录集$rs |