資源簡介
PHP 分頁 mysql
代碼片段和文件信息
ob_start();
session_start();
require(“config.php“);
?>
lns=“http://www.w3.org/1999/xhtml“>
ta?http-equiv=“Content-Type“?content=“text/html;?charset=gb2312“?/>
nk?href=“/style.css“?rel=“stylesheet“?type=“text/css“?/>
tle>插入數(shù)據(jù)庫數(shù)據(jù) tle>
if($_POST[“Submit“])
{
$typ=$_POST[“typ“];
$content=$_POST[“content“];
$author=$_POST[“author“];
$sql=“insert?into?contents(titlecontentsauthor)?values?($typ‘$content‘‘$author‘)“;
mysql_query($sql);
header(“l(fā)ocation:index.php?id=$typ“);
}
$sql=“select?*?from?title“;
$rs=mysql_query($sql);
?>
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-10-30?22:17??phpjiandan\
?????文件????????2098??2013-03-10?22:28??phpjiandan\add.php
?????文件?????????182??2013-03-05?23:05??phpjiandan\config.php
?????文件?????????539??2013-03-10?21:58??phpjiandan\del.php
?????文件????????5052??2013-05-04?21:47??phpjiandan\index.php
?????文件????????3607??2013-05-04?21:44??phpjiandan\joke.sql
?????文件????????2310??2013-03-10?22:28??phpjiandan\modify.php
?????文件?????????649??2013-03-05?23:16??phpjiandan\st
?????文件?????????640??2013-05-04?21:45??phpjiandan\簡單的一款PHP+MYSQL增刪改查程序.txt
- 上一篇:PHP ajax 文件上傳(帶進(jìn)度條)
- 下一篇:php 微信掃一掃支付
評論
共有 條評論