The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

I have put a business and shop listing (single table) together for a town which displays a simple text record for each entry. However some shops would like their own custom page which will be displayed in place of the plain text record. I have added a new field to the table called ownpage which has the path and filename of the custom page. What I want to happen is if there is a path and filename in the ownpage field then go there otherwise display the normal default text record.
The site is http://www.e-navan.com
Thank you for any direction or if you would like to see the code in question please let me know.

Thanks for a very very prompt reply and I'm really sorry to have to give you this much code to look at. Its not the most slick code ever written but ir runs well.
I put double lines in the area where I want the custom page to happen (about 12 lines from the top.
Again Many Thanks

printf("<p align=\"center\"><B><font size=+2>E-NAVAN LISTING FOR $title</font></font></B><br>");
$result=mysql_query("SELECT * FROM enavan WHERE cats LIKE '%$cat%' ORDER BY Names");
IF ($myrow=mysql_fetch_array($result)) {
do {