hello -
trying to pass variable through url from the database query.
i query and store the id in $id and put that in:
-
<a href="list.php?Id=$Id"><img src="<?php echo $row_list['photo']; ?>
-
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
-
http://domain.com/list.php?Id=$Id
-
how do i get this to set in the url?
i've used a get method to clean and get the variable.
-
if(isset($_GET['Id'])) {
-
$Id = htmlspecialchars($_GET['Id']);
-
}
-
-
<a href="list0.php?Id=$Id&PicId=$pic_Id"><img src="<?php echo $row_list['Photo']; ?>" height="120" width="120" align="middle" />
-
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