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
https://forums.phpfreaks.com/topic/138372-very-basic-question/#findComment-723518
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
https://forums.phpfreaks.com/topic/138372-very-basic-question/#findComment-723519
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.