Jump to content

Very basic question...


Benz1

Recommended Posts

Hi Mate,

 

well this: cmd=viewphoto&id=1 is specifically asking for all the photos that the user id 1 is associated with, you would need to have something like: 0 or showAll at the end then do an if statement to see if the show all was found! if it was display all photos!

 

do you have any code there mate :)

 

Graham

Link to comment
Share on other sites

Thanks for your quick response, today of all days!

 

I think the following is the code associated with it but as you can probably tell I'm not exactly proficient with php -

 

	elseif ($cmd == 'viewphoto') {
	$vid = 0;
	if ($loggedin) $vid = $loggeduserid;
	if (isset($_GET['id']) && is_numeric($_GET['id'])) $vid = $_GET['id'];
	$view_photo = 1;
	$show_header = 0;
}

 

Thanks,

Benz1

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.