I have searched around the site an forums and did not come up with an answer. Hopefully this is an easy question for someone that is not as much of a newb as I.
A quick description of what I am trying to do:
I am building a system for some people doing training. I want to have a syllabus (for lack of a better word) node they can follow, that has links to the blurbs of content sort of like a prompter.....
I have some .js files that let me define a class on an anchor tag (see below). When the user clicks on the anchor it overlays an Iframe on top of the page. Clicking the link again closes the Iframe an returns the page to normal.
<br>
<a href="http://jailbird.somwhere.com/?q=node/114" class="DOMpop">link text</a>
<br>
Now with the above code the whole iframe thing works great but I get all the nav and header stuff, basically as you would see it in the browser. This of course is expected given the URL I used.
I would like to be able to pass a nodeid to a special node with some PHP in it that pulls the nodeid off the URL and returns only the "body" of the specified node.
I found some code on drupal.org and have played around with it so that it looks like the below but I need to know how to
read a var off the URL.
http://jailbird.somwhere.com/?q=node/114/250
NB: The SQl works when I run it in mysql
<?php