简体   繁体   English

论坛帖子未显示

[英]Forum posts not showing

I have a really big problem here with alot of code but i think i know the problem When im creating a topic(post) it get the category_id of 0 but category_id's is starting on 1 so the topic(post) is not showing in enny of the categorys. 我在这里有很多代码有很大的问题,但是我想我知道问题了。即时消息创建一个topic(post)时,category_id为0,但category_id的开头为1,所以topic(post)不在enny中显示类别。 But i dont know how to fix that problem. 但是我不知道如何解决这个问题。

My codes: 我的代码:

  • index.php: pastebin.com/5sBNtur7 index.php: pastebin.com/5sBNtur7
  • login_parse.php: pastebin.com/WnYv4caK login_parse.php: pastebin.com/WnYv4caK
  • logout_parse.php: pastebin.com/2eW5VWn8 logout_parse.php: pastebin.com/2eW5VWn8
  • view_category.php: pastebin.com/PCAHv0pe view_category.php: pastebin.com/PCAHv0pe
  • create_topic.php: pastebin.com/LU7Ua42z create_topic.php: pastebin.com/LU7Ua42z
  • create_topic_parse.php: pastebin.com/DeUqX4ju create_topic_parse.php: pastebin.com/DeUqX4ju

in your create_topic.php on line 33 在第33行的create_topic.php中

<input type="hidden" name="cid" value"<?php echo $cid; ?>" />

Your are missing the "=" 您缺少“ =“

<input type="hidden" name="cid" value="<?php echo $cid; ?>" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM