?
session_start();
include('../inc/conn.php');
if($_SESSION['admin']=="OK")
{
$exec="select * from ad";
$result=mysql_query($exec);
$rs=mysql_fetch_object($result);
$ad_top=$rs->ad_top;
$ad_foot=$rs->ad_foot;
?>
<html
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>广告管理</title>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
广告管理
<?php
require_once('head.php');
?>
<form action="adupdata.php" method="post" name="name1" id="name1">
顶部广告:
<textarea name="post_adtop" cols="80" rows="4"><?=$ad_top?>
</textarea>
底部广告:
<textarea name="post_adfoot" cols="80" rows="4"><?=$ad_foot?>
</textarea>
<input name="submit" type="submit" value="修改" /></li>
<input name="B2" type="reset" value="重置" /></li>
</form>
<?
require_once('foot.php');
} else
header("location:error.php");
mysql_close();
?>
2022-02-07 23:44:37
22KB
内含php
1