|
|
|
|
![]() ![]() |
Oct 1 2005, 09:49 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 302 Joined: 17-June 05 From: Frankfurt, Germany Member No.: 8,358 |
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 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. CODE <?php if($_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. |
|
|
|
Oct 1 2005, 10:09 AM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 302 Joined: 17-June 05 From: Frankfurt, Germany Member No.: 8,358 |
Actualy i found the solution myself. so for anybody who cares:
CODE <?php if($_REQUEST['list'] == "" || $_REQUEST['list'] == "1") { echo 'No argument.'; } else { ?> <?php $mg2->gallerynavigation(">") ?> <?php echo $currentfolder ?> <?php } ?> Never thought about closing the tag. |
|
|
|
Oct 1 2005, 02:15 PM
Post
#3
|
|
|
Moderator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,325 Joined: 8-March 05 From: Mawson, Antarctica Member No.: 4,254 |
Sweet. Gotta mind the brackets when you're coding.
Thread closed. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 5th September 2008 - 09:24 AM |