Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //script koneksi
- $host = 'localhost:E:\kerja\fortuna\FORTUNA.GDB';
- $username='SYSDBA';
- $password='masterkey';
- if( function_exists ('ibase_connect')){
- $dbh = ibase_connect($host, $username, $password);
- }
- else{
- die('belum di aktifkan di PHP.ini bagian ibase');
- /*
- baca ini http://php.net/manual/en/ibase.installation.php
- */
- }
- //script untuk query data
- $stmt = 'SELECT * FROM arinv';
- $sth = ibase_query($dbh, $stmt);
- while ($row = ibase_fetch_object($sth)) {
- $no=$no+1;
- echo $no.'.'.$row->CUSTOMERID, "</br>";
- }
- ibase_free_result($sth);
- ibase_close($dbh);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement