echo ("<tr id='$a' bgcolor='B0C4DE'>");
echo ('<td>'.$row['idbook_code'].'</td>');
echo ('<td>'.$row['b_name'].'</td>');
echo ('<td>'.$row['b_author'].'</td>');
echo ('<td>'.$row['b_avail'].'</td>');
if($row['b_avail']>0)
{
if (!$_SESSION["valid_user"])
{
// User not logged in, redirect to login page
echo("<td>Available</td>");
}else
echo("<td><INPUT TYPE=button id=show name=show value=add></td>");
}else
echo("<td>No stock of book</td>");
echo("</tr>");
?>
i have my search area when i search it output the total item will be in the table so when i click the button i should get the idbook of the clicked row i display it on the same page where what row was clicked
any snippet will do the help