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

PHP
用PHP实现ODBC数据分页显示一例
用DBSQL类加快开发MySQL数据库程序的速度
多php服务器实现多session并发运行
多核编程中的负载平衡难题
将Oracle内置的安全特性用于php
在PHP中使用ASP.NET AJAX
php中计算时间差的几种方法
PHP 5.0对象模型深度探索之类的静态成员
让PHP管理小型的邮件列表
MagickWand for PHP linux INSTALL 安装
PHP中数组元素升序、降序及重新排序的函数
PHP后门的隐藏技巧测试报告
配置Apache 1.3或者Apache 2.0服务器的5个技巧
用Suhosin加强PHP脚本语言安全性
PHP动态网页编程常用技巧四则
解答:如何使用PHP开发高效的WEB系统
PHP实现上传文件生成小图加文字的实例
PHP实现定时生成HTML网站首页
教你用PHP写MySQL数据库的用户认证系统
加速动态网站 MySQL索引分析和优化

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 28 ::
收藏到网摘: 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