52 |
$oTest = new ODBCSocketServer; |
$oTest = new ODBCSocketServer; |
53 |
|
|
54 |
//Set the Hostname, port, and connection string |
//Set the Hostname, port, and connection string |
55 |
|
// $oTest->sHostName = "hbreyer2.pliva.hr"; |
56 |
$oTest->sHostName = "tkcpdc.pliva.hr"; |
$oTest->sHostName = "tkcpdc.pliva.hr"; |
57 |
$oTest->nPort = 9628; |
$oTest->nPort = 9628; |
58 |
$oTest->sConnectionString = "DSN=Imenik;UID=admin;PWD=admin;"; |
$oTest->sConnectionString = "DSN=Imenik;UID=admin;PWD=admin"; |
59 |
|
|
60 |
//now exec the SQL |
//now exec the SQL |
61 |
$sResult = $oTest->ExecSQL("SELECT * FROM kontakti"); |
$sResult = $oTest->ExecSQL("SELECT * FROM g1"); |
62 |
|
|
63 |
//now format and print the results. Subsititute in your code here! |
//now format and print the results. Subsititute in your code here! |
64 |
//We will use the PHP XML Parser module to parse the result :) |
//We will use the PHP XML Parser module to parse the result :) |