session_start();
$con=mysql_connect('localhost','root','root') or die('链接数据库失败!');
mysql_query('set names utf8');
mysql_select_db('dbName');
## select
$sql = "SELECT * FROM tab WHERE ";
$numRecord = mysql_num_rows(mysql_query($sql));
$pagesize = 10;
$totalpage = ceil($numRecord/$pagesize);
$recordSql = $sql. " LIMIT ".$page*$pagesize.",".$pagesize;
$result = mysql_query($recordSql);
while($rs=mysql_fetch_object($result)){
echo $rs->id
echo date("Y-m-d H:i:s",$rs->revert_time+8*3600)
}
## insert
## delete
## update
分享到:
相关推荐
It hasn't taken Web developers long to discover that when it comes to creating dynamic, database-driven Web sites, MySQL and PHP provide a winning open-source combination. Add this book to the mix, ...
PHP and MySQL Web Development(Fourth Edition) 英文第四版,PDF格式
PHP and MySQL Recipes: A Problem-Solution Approach supplies you with complete code for all of the common coding problems you are likely to face when using PHP and MySQL together in your day-to-day web...
最新版第5版《php and mysql web development》电子版 第30章 OATUTH2.0
PHP and MySQL Recipes PHP and MySQL Recipes PHP and MySQL Recipes
PHP and MYSQL Web Development.5th.Edition 源代码完整版
Get started with PHP and MySQL programming: no experience necessary. This fifth edition of a classic best-seller includes detailed instructions for configuring the ultimate PHP 7 and MySQL development...
PHP and MYSQL Web Development.5th.Edition chart29
Beginning PHP and MySQL 5
PHP and MYSQL Web Development.5th.Edition 源代码完整版, 包括网络章节, 第 28, 29, WebMail, 30, SocialOAuth, 31, ShoppingCart 等网络章节.
developing e-commerce Web sites using PHP and MySQL. Emphasizing security, a positive customer experience, and modular, extendable programming, this book presents tons of detailed solutions to today...
php and mysql一本经典的教程的最新版,欢迎下载
php and mysql web开发 第四版 原著 php and mysql web开发 第四版 原著
PHP and MySQL Web Development 4th 文档和源码
PHP and MySQL Web Development 5th Edition 官网源代码
PHP and MySQL Web Development - Examples Source Code, 5th Edition 书籍配套代码第五版
最新版第5版《php and mysql web development》电子版 第28章
It is a nice beginning guide!
PHP and MySQL Web Development这本书随书附带的代码,包含第三版和第四版