just 1 parameter in a link, just 1

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
emelianenko
Forum Commoner
Posts: 35
Joined: Thu Sep 09, 2010 11:49 am

just 1 parameter in a link, just 1

Post 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
Post Reply