i think you may have mis understood me. this is not my code on the db side of things, its a content managment system call pagetool it gives the option to store either html or php in its db, (hence my <? tag comment)
the pages the search page is looking at are stored as php (untagged) as here
$template = '3way.tpl';
$left = <<<HTML
<form action="index.php?name=pagetool_search" method="post">
<input type="text" name="search_term">
<input type="submit" value="Search">
</form>
HTML;
$centre = <<<HTML
Audio Hire - Sales - Installation - Event Production
Urban Audio Productions is an energetic company with a 'can do' attitude
towards the challenges of the live events industry. We have a large inventory of
please call 0121 689 2722 or email
<a href="mailto:info@uaproductions.com">info@uaproductions.com</a>
HTML;
$right = <<<HTML
<a href="index.php?name=pt_user_man_en">Check out the User Manual</a>
HTML;
$content = array
( 'title' => $my_title, 'left' => $left, 'centre' => $centre, 'right' => $right );
drawpage($template,$content);
this gets parsed somehow and output as html
now this code is what is returned after my search runs, i need to parse it and display the html, (or ideally a section of it!! (being the $centre variable) )
have a look at http://www.urban-audio.co.uk/index.php?name=pagetool_search and search for 'nexo'
thanks in advance
ollie