21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
if(isset($_POST['btn_add'])&&$_POST['btn_add']=="Add Day")
{
$day=$_POST['txt_day'];
$day_no=$_POST['txt_day_no'];
$query="INSERT INTO TRADING_DAYS_CONTAINER (days_no, days) VALUES ('$day_no', '$day')";
$result=queryMysql($query); //这里的queryMysql()就是mysql_query()
if($result)
{
header("Location:admin_trading.php?class=days_mgmt");
}
}
?>
<?php
//框架代码, 1.php
include 'lib/functions.php';
include '2.php';
?>
<?php
// filename: 1.php
// 这样没问题
include 'other.php';
include '2.php';
// 这样2.php中的脚本就要报未定义了,因为还没执行到include 'other.php'
include '2.php';
include 'other.php';
?>