I would like to know how to solve this issue with a while loop and a href link inside
instead of using submit button.
When I click the link I’m echoing out everything that is in loop but I want to only
echo out the id which I have clicked on.
Here is my little code:
<?php
while( $profile_images_not_approved_view = mysql_fetch_array($profile_images_not_approved)) {
if (isset($_GET['approve']) == $profile_images_not_approved_view['id'])
{
echo "hello id";
echo $profile_images_not_approved_view['id'];
}
?>
<td class="center">
<a href="?p=testme&approve";?>" name="<?php echo $profile_images_not_approved_view['id'];?>" class="button small grey tooltip"></a>
</td>
<?php } ?>
Try this: