PHP code example of jgaydos / php-jdbc-bridge
1. Go to this page and download the library: Download jgaydos/php-jdbc-bridge library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jgaydos / php-jdbc-bridge example snippets
ost = "server";
$dbName = "";
$dbPort = "1990";
$dbUser = "dharma";
$dbPass = "";
$connStr = "jdbc:dharma:T:${dbHost}:${dbName}:${dbPort}";
$db = new PJBridge();
$result = $db->connect($connStr, $dbUser, $dbPass);
if(!$result){
die("Failed to connect\n");
}
$cursor = $db->exec('SELECT * FROM "AR Customer File"');
while($row = $db->fetch_array($cursor)){
print_r($row);
}
$db->free_result($cursor);