Topic Options
Rate This Topic
#61592 - 09/08/03 04:35 AM PHP & Remedy ODBC
Anonymous
Unregistered


Is there any PHP code that demonstrates how to access data from the Remedy AR server using the Remedy ODBC driver?


my current code is this:
-------------------------------------------------------
<?php
$msserver="Remedy ODBC Data Source";
$usrname="Demo";
$passwrd="XXXXX";
$conn=odbc_connect($msserver,$usrname,$passwrd);
$result = odbc_exec($conn, "SELECT * FROM SuN-Ticket");
while (odbc_fetch_row($result))
{
$standort = odbc_result($result, "An Standort");
$erstellt = odbc_result($result, "Erstellt am");
echo "$standort und $erstellt <br>";
}
odbc_close($conn);
?>
-----------------------------------------------
the failure I get:

Warning: odbc_exec(): SQL error: [ISAM]No data found, SQL state S00 in SQLExecDirect in C:\Inetpub\wwwroot\uhd\test.php on line 7

Warning: odbc_fetch_row(): supplied argument is not a valid ODBC result resource in C:\Inetpub\wwwroot\uhd\test.php on line 8

Top
#61593 - 09/09/03 02:03 AM Re: PHP & Remedy ODBC [Re: Anonymous]
Matt Reinfeldt Offline
Old Hand
***

Registered: 06/12/01
Posts: 1419
Loc: Madison, WI
I haven't seen any examples yet, but you could try using ARSPHP to access Remedy data... it's available in my download area http://www.mattreinfeldt.com/apps/index.php?action=file&id=129

Maybe that will help you.
_________________________
Matt Reinfeldt
I belong to the following Professional Networks:
http://www.naymz.com/search/matt/reinfeldt/1524717
http://www.linkedin.com/in/mreinfeldt

Top
#61594 - 08/23/05 04:02 AM Re: PHP & Remedy ODBC [Re: Anonymous]
Anonymous
Unregistered


Quote:

Is there any PHP code that demonstrates how to access data from the Remedy AR server using the Remedy ODBC driver?



Hi, my php-code looks like below, I get connected to the ars-server but querying fails with SQL error: Driver]Form does not exist on server. NIBR_Hardware, SQL state S00 in SQLExecDirect...table exists. I doubt that the odbc-driver works well with php
>>
$cstring = "DSN=AR System ODBC Data Source;" . "ARServer=someserver;" . "UID=someuid;" . "PWD=somepwd;";
$conn = odbc_connect($cstring,'','');
$qry = "select * from NIBR_Hardware";
$result = odbc_exec($conn,$qry);
$num_rows = odbc_num_rows($conn);
odbc_close($conn);

could you solve our prob?

Top
#61595 - 09/05/05 06:20 AM Re: PHP & Remedy ODBC [Re: Anonymous]
Anonymous
Unregistered


Check out the eleGantt php-script code at
http://www.erwe.se/eleGantt/

It uses the ar system odbc-driver.

Top