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

PHP
php header 详细使用说明与使用心得
php利用header函数实现文件下载时直接提示保存
php $_SERVER当前完整url的写法
PHP 配置open_basedir 让各虚拟站点独立运行
PHP 程序员的调试技术小结
php 静态变量的初始化
php与XML、XSLT、Mysql的结合运用实现代码
php+javascript的日历控件
php 引用(&)详解
PHP小程序自动提交到自助友情连接
PHP 单引号与双引号的区别
PHP 递归效率分析
PHP 进程锁定问题分析研究
phplock(php进程锁) v1.0 beta1
php Memcache 中实现消息队列
MYSQL 小技巧 -- LAST_INSERT_ID
Ajax+PHP 边学边练 之二 实例
php 运行效率总结(提示程序速度)
Ajax PHP 边学边练 之三 数据库
在mysql数据库原有字段后增加新内容

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


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