0

I just working with php mysql view rows from database in table but i want to make a link. when any one click comment it will be open as popup window.

image enter image description here

echo "<tr bgcolor='#EBEBE6'>
  <td width='5'> </td>
  <td>".$rows['Date']."</td> 
  <td>".$rows['Payment_ID']."</td>
  <td>".$rows['Staff_ID']."</td>
  <td>".$rows['Amound']."</td>
  <td>"[i want add popup link here].$rows['Comments']."</td>
</tr>";
Kumar V
  • 8,810
  • 9
  • 39
  • 58
sanso13527
  • 33
  • 2
  • 7

1 Answers1

0

Use window.open to popup new window

echo "<tr bgcolor='#EBEBE6'>
  <td width='5'> </td>
  <td>".$rows['Date']."</td> 
  <td>".$rows['Payment_ID']."</td>
  <td>".$rows['Staff_ID']."</td>
  <td>".$rows['Amound']."</td>
  <td><a href='#' onclick='window.open("you url here","","width=200,height=100");'>".$rows['Comments']."</td>
</tr>";
Ravikumar Sharma
  • 3,678
  • 5
  • 36
  • 59