I've converted the previous script to mysqli as all my scripts are, and it works perfectly, and now I'm trying to get it to link to the correct page id number as this example:
Basically, my script links to a page called page_edit.php which collects the relevant page id to display the contents.
The way I have this script at the moment, it only links to the LAST page id, no matter what link you click on, and I want each link to go to a different page id (does that make sense at all??),
Here's the modified script:
and here's the "ajax_tree.php" that the page is referring to in case that helps:
and here's the edit_page.php code:
Would really appreciate the extra help!