Advertisement
GWibisono

Untitled

Feb 15th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. //script koneksi
  4.  
  5. $host = 'localhost:E:\kerja\fortuna\FORTUNA.GDB';
  6.  
  7. $username='SYSDBA';
  8.  
  9. $password='masterkey';
  10. if( function_exists ('ibase_connect')){
  11.     $dbh = ibase_connect($host, $username, $password);
  12. }
  13. else{
  14.     die('belum di aktifkan di PHP.ini bagian ibase');
  15. /*
  16. baca ini http://php.net/manual/en/ibase.installation.php
  17. */
  18. }
  19. //script untuk query data
  20.  
  21. $stmt = 'SELECT * FROM arinv';
  22.  
  23. $sth = ibase_query($dbh, $stmt);
  24.  
  25. while ($row = ibase_fetch_object($sth)) {
  26.  
  27.    $no=$no+1;
  28.  
  29.    echo $no.'.'.$row->CUSTOMERID, "</br>";
  30.  
  31. }
  32.  
  33. ibase_free_result($sth);
  34.  
  35. ibase_close($dbh);
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement