Breadcrum Modified Pre-order Tree Transversal MPTT SQL Query

Mobile
feeds
Welcome Login | Register

Breadcrum Modified Pre-order Tree Transversal MPTT SQL Query
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » PHP Forums
        » » Breadcrum Modified Pre-order Tree Transversal MPTT SQL Query
Breadcrum Modified Pre-order Tree Transversal MPTT SQL Query
Post Description: breadcrum modified pre order tree transversal mptt sql query PHP
Post Tags:
This Post Has Been Viewed 760 Times Since Sat Mar 15, 2008 3:11 pm Author hostman with 0 replies
Breadcrum Modified Pre-order Tree Transversal MPTT SQL Query
Advertise On This Page




$sql = "SELECT C.* from myp1_category AS B, myp1_category AS C WHERE (B.category_left BETWEEN C.category_left AND C.category_right) AND (B.category_id = '12') ORDER BY C.category_left";

i created this query because i wanted to know how i can get the breadcrum out of a Modified Pre-order Tree Transversal menu as shown here:

http://www.wallpaperama.com/forums/mptt-modified-pre-order-tree-transversal-php-tree-menu-script-t5713.html

so in keeping with this example. i want to show all the links for the bread yellow so it would look like this:

Food

Fruit
Yellow


as you can see, Yellow has a value of 5 in id colum so i can use this query to get all its perents:

$sql = "SELECT C.* from myp1_category AS B, myp1_category AS C WHERE (B.category_left BETWEEN C.category_left AND C.category_right) AND (B.id = '5') ORDER BY C.category_left";




Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : Breadcrum Modified Pre-order Tree Transversal MPTT SQL Query

Comments and replies About Breadcrum Modified Pre-order Tree Transversal MPTT SQL Query
(0) Comments