Location: PHPKode > scripts > PHPDBX > phpdbxa1/examples/index.php
<html>
<head>
	<title>Example 1</title>
</head>
<body>
	<?
		include '../phpdbx/fbdatabases.php';
		include '../phpdbx/fbqueries.php';

		$DB = new TFBDataBase;
		$DB->Base = 'localhost:phpdbx.fdb';
		$DB->User = 'SYSDBA';
		$DB->Password = 'C7KiTw6b';
        $DB->Connect();

        $QR = new TFBQuery;
        $QR->DataBase = $DB;
        $QR->SQL = 'select C.* from TB_CUSTOMER C';
        $QR->Execute();

        while ($QR->Next())
        {
          echo $QR->Field[0].' ';
        }

        $QR->Close();
    	$DB->Disconnect();

	?>

</body>
</html>
Return current item: PHPDBX