Jump to content

php syntax help passing a variable and more


php_begins

Recommended Posts

I probably need synatx help or more:

I have a page that has the following code for an image:

 

<?php echo "<a href='".$gallery_folder.$photo_name."' >"; ?>

<img src="<?php echo $imagespath.$row['Photo_path'].$row['Thumbnail1_name']; ?>" /></a>

 

This takes you to this page:

http://www.xyz.com/photo/a_home_a-433.html

 

 

Now, i need to pass a variable to the above page so that when it redirects I get the following information on the URL:

http://www.xyz.com/photo/a_home_a-433.html?album='some-album-name'.

 

I tried different things but i am still getting an error in the page.

 

This one of the things I tried:

<a href="<?php echo $gallery_folder.$photo_name; ?>?album=<?php echo $category_name; ?>

<img src="<?php echo $imagespath.$row['Photo_path'].$row['Thumbnail1_name']; ?>" /></a>

 

I need help with the syntax.

 

 

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.