Advertisement
Knilayan

Untitled

Oct 20th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.35 KB | None | 0 0
  1. <?php
  2. include 'connection.php';
  3.     $query = "SELECT patient.patient_id, patient.fname, patient.mname, patient.lname, diagnosis.diag, diagnosis.symptoms, diagnosis.treatment,
  4.     diagnosis.dremarks, diagnosis.dod
  5.                     FROM patient
  6.                     LEFT JOIN diagnosis
  7.                     ON patient.patient_id=diagnosis.patient_id
  8.                     WHERE patient.patient_id = $_GET[id]";                     
  9.                    
  10. $result = mysql_query($query);
  11. while($person = mysql_fetch_array($result)) {
  12. echo "<tr class='searchadds'>";
  13. echo "<td align='center' height='30'><font color='#fff' size='2'>" . $person['symptoms'] . "</td>";  
  14. echo "<td align='center' height='30'><font color='#fff' size='2'>" . $person['treatment'] . "</td>";  
  15. echo "<td align='center' height='30'><font color='#fff' size='2'>" . $person['dremarks'] . "</td>";  
  16. echo "<td align='center' height='30'><font color='#fff' size='2'>" . $person['dod'] . "</td>";
  17. echo "<td  height='30' class='menu'><center><a href=\"#\" onClick=\"MyWindow=window.open('ddiagnosisadd.php?id=" . $person['patient_id'] . "','MyWindow','toolbar=no,location=center,directories=no,status=no, menubar=no,scrollbars=no,resizable=0,width=300,height=500,left=2px,top=10,right=2px,bottom=10px'); return false;\">";
  18. echo "<center><img src='img/update.png'><font color='#fff'>&nbsp;Add Record</center></td>";
  19. echo "</a></center>";
  20. echo "</tr>";  
  21. }
  22. echo "</table>";
  23. echo "<br>";  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement