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?
Include Function help
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Include Function help
Do:
Code: Select all
<?php
$gazpart = 'show';
$gazgal = 1;
@include_once( $_SERVER["DOCUMENT_ROOT"]."/gallery/index.php" );
?>(#10850)
Re: Include Function help
wait, the import grabs the GET values? how is that 
Re: Include Function help
Thanks for the suggestion, unfortunately I can't get it to import the values.
Take a look here:
http://www.campanjigami.com/gallery/fish/
When going to the above address, I want it open the "Fish" category, not the individual categories as shown.
Also, just as a side note, I changed the gazgal value to "6" for the Fish Category.
Take a look here:
http://www.campanjigami.com/gallery/fish/
When going to the above address, I want it open the "Fish" category, not the individual categories as shown.
Also, just as a side note, I changed the gazgal value to "6" for the Fish Category.