sxyloverboy 0 Report post Posted October 1, 2005 ok so ive look all over but all i finding is else and if statments echoing something. i dont really know any php ive been just modifiyinf bits of code and putting it together with my logical thingking. anyways here is my questionRight now i have this in my code <?php $mg2->gallerynavigation(">") ?> <?php echo $currentfolder ?> but only want it to display that if $list == '' so i took this thing from spectre tut and modified it to this. <?phpif($_REQUEST['list'] == "" || $_REQUEST['list'] == "1") { echo 'No argument.'; } else { echo 'Argument'; //What do i put here??? this is where i want it to do this <?php $mg2->gallerynavigation(">") ?> <?php echo $currentfolder ?> } ?> so yeah i hope thats explained enough. if you goto [here] you can see how im trying to use it where it says Lucas Photography and No Argument and Argument. ive tried a few stuff but it only gave me errors. Share this post Link to post Share on other sites
sxyloverboy 0 Report post Posted October 1, 2005 Actualy i found the solution myself. so for anybody who cares: <?phpif($_REQUEST['list'] == "" || $_REQUEST['list'] == "1") { echo 'No argument.'; } else { ?> <?php $mg2->gallerynavigation(">") ?> <?php echo $currentfolder ?> <?php } ?> Never thought about closing the tag. Share this post Link to post Share on other sites
snlildude87 0 Report post Posted October 1, 2005 Sweet. Gotta mind the brackets when you're coding. :huh:Thread closed. Share this post Link to post Share on other sites