문제

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>";
도움이 되었습니까?

해결책

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>";
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top