سؤال

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