HTML5先行者高级交流群

欢迎加入学习讨论
专注前端,专注网页设计制作及网站开发项目 - (低价承接网站开发项目) QQ:370158739加入收藏RSS
一个个人网页自动化生成系统(6)_PHP教程_编程技术
2013-12-23 09:52:03
[小 大]
已经帮助:人解决问题
网站管理,文件名:guanli.php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" background="image/b-graingr2.jpg">
<table width="775" border="0">
<tr>
<td width="101" height="463" valign="top">
<p><img src="http://edu.cnzz.cn/NewsInfo/image/piao.gif" width="103" height="60"></p>
<p><img src="http://edu.cnzz.cn/NewsInfo/image/a.gif" width="100" height="35"></p>
<p><a href="muban.php"><img src="http://edu.cnzz.cn/NewsInfo/image/b.gif" width="100" height="35" border="0"></a></p>
<p><img src="http://edu.cnzz.cn/NewsInfo/image/c.gif" width="100" height="35"></p>
<p><img src="http://edu.cnzz.cn/NewsInfo/image/d.gif" width="100" height="35"></p>
<p><img src="http://edu.cnzz.cn/NewsInfo/image/e.gif" width="100" height="35"></p>
<p><img src="http://edu.cnzz.cn/NewsInfo/image/f.gif" width="100" height="35"></p>
</td>
<td width="663" height="463" valign="top">
<table width="95%" border="0" align="center" height="234">
<tr>
<td height="43">
<div align="center"><b><font color="#480000" size="6">页面管理</font></b></div>
</td>
</tr>
<tr valign="top">
<td height="267">
<?php
// 程序开始
$db = mysql_connect("localhost", "root");
mysql_select_db("study",$db);
// 判断是不是修改文件
if ($submit) {
$sql = "UPDATE wenzhang SET timu='$timu',zuozhe='$zuozhe',
laiyuan='$laiyuan',textt='$textt' WHERE id=$id";
// 向数据库发出SQL命令
$result = mysql_query($sql);
// 文章生成
$t = date("Y-m-d h:i:s");
$muoban1 = fopen("muoban1.txt","r");
$muoban2 = fopen("muoban2.txt","r");
$muoban3 = fopen("muoban3.txt","r");
$qita = "<p><table width="75%" border="0" align="center">
<tr>
<td class=p9>
<div align="center">作者:<font color="#306800">$zuozhe</font> 来源:<font color="#306800">$laiyuan</font>