hello -
trying to pass variable through url from the database query.
i query and store the id in $id and put that in:
i've used an echo statement to ensure that the variable is set and it is.
Its just not being passed as a variable to the next page. in the url it shows
how do i get this to set in the url?
i've used a get method to clean and get the variable.
i have the pic_Id set from another query on this page. the ending result should be:
grab the id from page one, user clicks on the link and that id is passed to page 2 and displays other images passed on that id that was passed, and stores the album id and picture id with the image in the hyper link.
i know that the query works just trying to get the variable to work.
thanks in advance for you help.
theo werntz
trying to pass variable through url from the database query.
i query and store the id in $id and put that in:
Code:
<a href="list.php?Id=$Id"><img src="<?php echo $row_list['photo']; ?>
Its just not being passed as a variable to the next page. in the url it shows
Code:
http://domain.com/list.php?Id=$Id
i've used a get method to clean and get the variable.
Code:
if(isset($_GET['Id'])) {
$Id = htmlspecialchars($_GET['Id']);
}
Code:
<a href="list0.php?Id=$Id&PicId=$pic_Id"><img src="<?php echo $row_list['Photo']; ?>" height="120" width="120" align="middle" />
grab the id from page one, user clicks on the link and that id is passed to page 2 and displays other images passed on that id that was passed, and stores the album id and picture id with the image in the hyper link.
i know that the query works just trying to get the variable to work.
thanks in advance for you help.
theo werntz
Comment