如何在菜单上显示特定类别的帖子? [英] How to display posts of a specific category onclick of menus?

查看:77
本文介绍了如何在菜单上显示特定类别的帖子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两张桌子,帖子和类别。


帖子


pid标题结果内容cid

1选项1选项内容1 2

2选项2选项内容2 2

3选项3选项内容3 3


类别


cid cname

1 Cat 1

2 Cat 2

3 Cat 3


这是我的insert.php

展开 | 选择 | Wrap | 行号

解决方案

在你的猫中。 php,你永远不会定义什么


cid应该是b即

好。我该怎么做?


I have two tables , Post and Category .

Post

pid title result content cid
1 Option1 Opt content1 2
2 Option2 Opt content2 2
3 Option3 Opt content3 3

Category

cid cname
1 Cat 1
2 Cat 2
3 Cat 3

This is my insert.php

Expand|Select|Wrap|Line Numbers

解决方案

In your cat.php, you never define what


cid is supposed to be.


Okay. How do i go about that ?


这篇关于如何在菜单上显示特定类别的帖子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆