Skip to content

Instantly share code, notes, and snippets.

@mariuz
Created December 22, 2008 17:02
Show Gist options
  • Save mariuz/39050 to your computer and use it in GitHub Desktop.
Save mariuz/39050 to your computer and use it in GitHub Desktop.
<?php
$query='SELECT * FROM employee ORDER BY LAST_NAME ASC';
$username = "SYSDBA";
$password = "masterkey";
$host = 'localhost:D:\FirebirdDBS\EMPLOYEE.FDB';
$conn = ibase_connect($host, $username, $password,'ISO8859_1',0,2)
or die("<br>Connection failed:");
$dati = ibase_query($conn, $query)
or die("<br>invalid query");
$i=0;
while ($row = ibase_fetch_object ($dati))
{
echo ++$i;
echo $row->LAST_NAME;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment