PHP修改出错。帮个忙 啊

后来花开 发布于 2012/07/17 18:44
阅读 257
收藏 0
PHP
$title, 'D_Content' => $content, 'D_shortContent' => $short_desc, 'D_CataID' => $CataID, 'D_Hits' => $hits, 'D_Pic' => $pic, 'D_Picture' => $D_Picture, 'D_Url' => $url, 'D_City' => $city, 'D_isHome' => $is_home, 'D_Published' => $published, 'D_Permission' => $permission, 'D_Order' => $sort_order, 'D_Keyword' => $keyword, 'D_Description' => $description ); if($isAjax){ $db = getDB(); $rows = getOne("#__newsdata","D_ID", $cid); if($rows->D_isHome == 0){ $query = "UPDATE #__newsdata set D_isHome = 1 WHERE D_ID = " . $cid; $img = ' '; }else{ $query = "UPDATE #__newsdata set D_isHome = 0 WHERE D_ID = " . $cid; $img = ' '; } $db->setQuery($query); $db->query(); echo ' ' . $img . ''; exit; }else{ if(updateTables("#__newsdata", $array, $cid)){ $c = array("A0001", "A0002", "A0003", "A0004", "A00050001"); if(in_array($CataID, $c)){ goWhere("淇敼鎴愬姛锛�","Admin_NewsModify.php?cid=" . $cid); }else{ goWhere("淇敼鎴愬姛锛�","Admin_NewsList.php?CataID=" . $CataID); } }else{ echo '淇敼澶辫触锛岃绋嶅悗鍐嶈瘯锛�'; exit; } }
加载中
0
deleted
deleted

这问题@红薯 都解决不了.....

0
十一文
十一文
乱码 看不明白
0
Jason阿坚
Jason阿坚
我就此忘记咯php
0
瑞新
瑞新
这个真的没法看,代码整理下
0
曹忠
曹忠
好歹你也换下行啊
返回顶部
顶部