Include Function help
Posted: Thu Mar 13, 2008 12:12 pm
I'm new to PHP. I am using a php photo gallery script. I want to include a specific category on a page specific to a certain category in my photo gallery.
I usually would just put the following to include my entire photo gallery on a page:
<?php @include_once( $_SERVER["DOCUMENT_ROOT"]."/gallery/index.php" ); ?>
But what I really want to do is something more like this that would only display a certain category in my photo gallery:
<?php @include_once( $_SERVER["DOCUMENT_ROOT"]."/gallery/index.php?gazpart=show&gazgal=1" ); ?>
but when I use this code, my photos do not display. Any suggestions?
I usually would just put the following to include my entire photo gallery on a page:
<?php @include_once( $_SERVER["DOCUMENT_ROOT"]."/gallery/index.php" ); ?>
But what I really want to do is something more like this that would only display a certain category in my photo gallery:
<?php @include_once( $_SERVER["DOCUMENT_ROOT"]."/gallery/index.php?gazpart=show&gazgal=1" ); ?>
but when I use this code, my photos do not display. Any suggestions?