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

PHP
让我们来编写一些PHP实用的脚本
七种缓存使用武器 为网站应用和访问加速
动态网页PHP中引用&的使用注意事项
在PHP中全面阻止SQL注入式攻击
PHP自带可以代替echo调试的unit函数
小结:PHP动态网页程序优化及高效提速问题
php对特殊语句查询结果进行数组排序
实例:用PHP技术解决网站URL格式过长的问题
小结:PHP动态网页程序两个有用的小技巧
动态网页中直接不让访问PHP程序文件
网页实例:详细介绍用PHP来编写网页记数器
菜鸟学习:动态网页PHP基础学习笔记
利用Apache实现禁止图片盗链
PHP编程中常用的三则技巧
PHP制作的网站意见在线反馈表
大型Web需求解决方案 PHP定位突出
PHP实例:精确到每一秒钟的在线人数显示代码
实用:动态网页制作技术PHP的十个应用技巧
常见php页面漏洞分析及相关问题解决
PHP和MYSQL制作动态网站开发经验之谈

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


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