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 750 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

Share:   Subscribe - Keep Up With This Topic
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites
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
Fourms BBCODE:
Links Related to : Breadcrum Modified Pre-order Tree Transversal MPTT SQL Query
Add Link:
No Links Have Been Added To This Topic

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