Jump to content
xisto Community
sxyloverboy

A Quick Easy Php Question how to write something

Recommended Posts

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 question

Right 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

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
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.