Advertisement
frowdz

Untitled

Apr 24th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. <?php
  2. $cek="select * from outlet_sofie where wilayah='Jakarta' ";
  3. $hasil=mysql_query($cek);
  4. while ($data=mysql_fetch_array($hasil)){
  5. if ($data['outlet']=="Modern Outlet Lokal") {
  6. echo "<h3>$data[outlet]</h3>";
  7. echo ("
  8. <div class='outlet'>
  9. <h3>$data[nama_outlet]</h3>
  10. Alamat : $data[alamat_outlet]<br>
  11. No Telp : $data[telp_outlet]
  12. </div>
  13. ");
  14. }
  15. else if ($data['outlet']=="Baby Shop") {
  16. echo "<h3>$data[outlet]</h3>";
  17. echo ("
  18. <div class='outlet'>
  19. <h3>$data[nama_outlet]</h3>
  20. Alamat : $data[alamat_outlet]<br>
  21. No Telp : $data[telp_outlet]
  22. </div>
  23. ");
  24. }
  25. else if ($data['outlet']=="Apotik") {
  26. echo "<h3>$data[outlet]</h3>";
  27. echo ("
  28. <div class='outlet'>
  29. <h3>$data[nama_outlet]</h3>
  30. Alamat : $data[alamat_outlet]<br>
  31. No Telp : $data[telp_outlet]
  32. </div>
  33. ");
  34. }
  35. else if ($data['outlet']=="Rumah Sakit/ RSIA/ RSB") {
  36. echo "<h3>$data[outlet]</h3>";
  37. echo ("
  38. <div class='outlet'>
  39. <h3>$data[nama_outlet]</h3>
  40. Alamat : $data[alamat_outlet]<br>
  41. No Telp : $data[telp_outlet]
  42. </div>
  43. ");
  44. }
  45. }
  46. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement