本文为了简单并能够说明主要内容,一些次要的html内容相对简单。
在网站有多个内容要在某一页显示时可在网页中共用一个显示和提交。
本例中有两个数据表(news,ctm);一个主页(index.php);
一个提交页(index_pub.php;和一个包函页(index_view.php)
一个子页(view_d.php)。
----news,ctm---
increate table news(id int(80) not null auto_increment,title char(100),detail text,primay key(id));
increate table ctm(id int(80) not null auto_increment,title char(100),detail text,primay key(id));
----index_view.php---
$myrow[title]
----index.php---
yourname online
你现在的位置-->首页
copyrignt 1999…
----index_pub.php---
请选择数据库:
news
ctm
标题:
内容:
----view_d.php---
if ($recod){
$query=select * from .$name. where id=.$recod;
$result=mysql_query($query,$db);
$title=mysql_result($result,0,title);
$detail=mysql_result($result,0,detail);
echo 标题:.$title.
;
echo 内容:.$detail.
;
}
else{echo 此文件已被删除!;}
http://www.bkjia.com/phpjc/315359.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/315359.htmltecharticle本文为了简单并能够说明主要内容,一些次要的html内容相对简单。 在网站有多个内容要在某一页显示时可在网页中共用一个显示和提交。...