在网络公司搞了一套PHP代码,在服务器上运行没问题,下载修改后上另一个服务器中,产品添加时点添加和修改都没反应了,代码没加密。不知是那里问题。if( $_POST['post'] == '1' )
{
$ProId = $_POST['ProId'];
$return_page = $_POST['return_page'];
$return_query = urldecode( $_POST['return_query'] );

$ProName = $_POST['ProName'];
$ProName_oth = $_POST['ProName_oth'];
$Pro_CateId = $_POST['Pro_CateId'];
$S_Pro_CateId = $_POST['S_Pro_CateId'];
$BianHao = $_POST['BianHao'];
$XingHao = $_POST['XingHao'];
$TuiJian = isset( $_POST['TuiJian'] ) ? '1' : '0';
$NewsPro = isset( $_POST['NewsPro'] ) ? '1' : '0';
$InIndex = isset( $_POST['InIndex'] ) ? '1' : '0';
$HotSale = isset( $_POST['HotSale'] ) ? '1' : '0';
$InSale = isset( $_POST['InSale'] ) ? '1' : '0';
$Price_0 = $_POST['Price_0'];
$Price_1 = $_POST['Price_1'];
$Price_2 = $_POST['Price_2'];
$TeJia = isset( $_POST['TeJia'] ) ? '1' : '0';
$Price_3 = $_POST['Price_3'];
$JdIntro = $_POST['JdIntro'];
$JdIntro_oth = $_POST['JdIntro_oth'];
$Contents = $_POST['Contents'];
$Contents_oth = $_POST['Contents_oth'];

$PicPath=array();
for( $i = 0; $i < $pro_img_count; $i++ )
{
if( $_POST['if_up_load_pic_' . $i] == '1' )
{
$PicPath[$i] = UpLoadFile( $_FILES['pro_pic_' . $i], $PicSaveDir = $up_load_file_base_dir . 'pro/' . date( 'Y/m_d/' ), $CreateSmallImg = 1, $pro_small_img_width, $pro_small_img_height );

DelFile( $_POST['S_ImgPath_' . $i] );
DelFile( str_replace( 'small_', '', $_POST['S_ImgPath_' . $i] ) );
}
else
$PicPath[$i] = $_POST['S_ImgPath_' . $i];
   }

$cate_rs = mysql_query( "select EndCate from procate where CateId='$Pro_CateId'" );
$cate_row = mysql_fetch_assoc( $cate_rs );
if( $cate_row['EndCate'] == '1' )
$CateId = $Pro_CateId;
else
$CateId = $S_Pro_CateId;

$Contents=SaveRemoteImg( $Contents, $up_load_file_base_dir . 'pro/intro/' . date( 'Y_m/d/' ) );
$Contents_oth=SaveRemoteImg( $Contents_oth, $up_load_file_base_dir . 'pro/intro/' . date( 'Y_m/d/' ) );

$upd_sql = "update pro set CateId='$CateId', ProName='$ProName', ProName_oth='$ProName_oth', BianHao='$BianHao', XingHao='$XingHao', PicPath_0='{$PicPath[0]}', PicPath_1='{$PicPath[1]}', PicPath_2='{$PicPath[2]}', PicPath_3='{$PicPath[3]}', PicPath_4='{$PicPath[4]}', TuiJian='$TuiJian', NewsPro='$NewsPro', InIndex='$InIndex', HotSale='$HotSale', InSale='$InSale', Price_0='$Price_0', Price_1='$Price_1', Price_2='$Price_2', TeJia='$TeJia', Price_3='$Price_3', JdIntro='$JdIntro', JdIntro_oth='$JdIntro_oth', Contents='$Contents', Contents_oth='$Contents_oth', AddTime='$now_time' where ProId='$ProId'";
mysql_query( $upd_sql );

AddManageLog( '编辑产品:' . $ProName );

header( "Location: $return_page?$return_query" );
exit;
}$ProId = $_GET['ProId'];
$current_page = $_GET['current_page'];
$UId = $_GET['UId'];
$return_page = $_GET['return_page'];
$return_query = stripslashes( $_GET['return_query'] );$pro_rs = mysql_query( "select * from pro where ProId='$ProId'" );
$pro_row = mysql_fetch_assoc( $pro_rs );