Page 1 of 1

just 1 parameter in a link, just 1

Posted: Fri Dec 10, 2010 5:08 am
by emelianenko
Hello


I have a a link which is dynamically generated in table rows, and I need to make the image clickable so as to "a href" AND pass the two values I include in the link, the ID and the tablename

I have 1 issue with that. Tablename does not get passed. Note however that th $tablename does not come from the sql query. It is a value that I pass when I click on the top menu of my page, so it is not the same as the id which is between square brackets.

Thank you. I found the solution myself. Have a nice day.

This is the link
echo '<td><a href=closeup.php?id='.addslashes($row['id']) .' rel=\"'.$tablename.'\"><img src="'.htmlspecialchars($row['pic']).'>"</a> </td>';
So, I want it to take me to the page called closeup.php and pass it the ID and the table name by means of clicking the picture

thanks a trillion. Been wrestling for 9 hours and I have to be somewhat close


Emi