开发者社区> 问答> 正文

PHP修改出错。帮个忙 啊? 400 报错

PHP修改出错。帮个忙 啊? 400 报错 $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; } }

展开
收起
爱吃鱼的程序员 2020-06-03 15:12:14 493 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

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

    ######乱码 看不明白######我就此忘记咯php######这个真的没法看,代码整理下
    ######好歹你也换下行啊
    2020-06-03 16:46:49
    赞同 展开评论 打赏
问答分类:
PHP
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
PHP 2017.北京 全球开发者大会——高可用的PHP 立即下载
PHP安全开发:从白帽角度做安全 立即下载
复杂PHP系统性能瓶颈排查及优化 立即下载