当前位置: 首页 > 图文教程 > 网络编程 > PHP > 一个个人网页自动化生成系统(6)

PHP
如何批量修改RAR文件注释
XAMPP环境下mysql的root用户密码修改方法
PHP教程:最全的CURL函数库中文说明
十三个WordPress SQL查询语句
PHP技巧汇总:提高PHP性能的53个技巧
用JQuery和PHP实现无刷新删除数据库数据
PHP教程:smarty学习指南
CentOS+Nginx+PHP+MySQL环境配置
PHP 5.2.13版发布修复之前30多个BUG
PHP实例教程:PHP采集程序的思路
Apache 2.2.15版发布
PHP实例教程:汉字转为unicode的通用函数
Windows7系统安装Apache_pn服务失败
PHP实例教程:PHP开启gzip页面压缩
PHP教程:strtok()函数实际应用
FireFox插件FirePHP调试PHP
PHP 正则判断中文 UTF-8 & GBK
PHP中处理string

PHP 中的 一个个人网页自动化生成系统(6)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 31 ::
收藏到网摘: n/a

  网站管理,文件名: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="/upload/tech/20091102/20091102235700_6883966fd8f918a4aa29be29d2c386fb.gif"" width="103" height="60"></p>
      <p><img src="/upload/tech/20091102/20091102235700_06138bc5af6023646ede0e1f7c1eac75.gif"" width="100" height="35"></p>
      <p><a href="muban.php"><img src="/upload/tech/20091102/20091102235701_9bf31c7ff062936a96d3c8bd1f8f2ff3.gif"" width="100" height="35"  border="0"></a></p>
      <p><img src="/upload/tech/20091102/20091102235702_7eabe3a1649ffa2b3ff8c02ebfd5659f.gif"" width="100" height="35"></p>
      <p><img src="/upload/tech/20091102/20091102235702_d516b13671a4179d9b7b458a6ebdeb92.gif"" width="100" height="35"></p>
      <p><img src="/upload/tech/20091102/20091102235703_6c3cf77d52820cd0fe646d38bc2145ca.gif"" width="100" height="35"></p>
      <p><img src="/upload/tech/20091102/20091102235703_b9228e0962a78b84f3d5d92f4faa000b.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=&quo