hi everyone,

This is my first project with php after using cold fusion for the last few
years!  So far I have been pretty happy with php, but I have a problem with
my application logic (not a php problem, but hoping for a sexy solution.)

I am using a template system and including different content files depending
on URL parameters.

eg

<html>
<body>
navigation
<?php include file depending on url?>
<body>
</html>

In the include file I have all the code i need.

My problem is that for one page in the site I need to display a image in the
navigation bar that is referenced from a database.  The database query
happens in the included file which is below the navigation in the html -
This means i cant reference the image file name because the query hasnt
happened.

So is it possible to specify in the included file that some php proccessing
happens before anything else?

Or  can I use some tricky javascript?

Or is there a cool php trick to do something like this?

Does anyone have any ideas?

thanks
chad



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to