We are using Novell Asset management that uses SQL Anywhere database. I am writing PHP script that queries data from this database.
When querying database using Sybase Central, I can execute query like this
Code:
SELECT *
FROM zenadmin.NC_Workstation
WHERE WorkstationOID=0x60309d8b7ec45d7c35c0700225174bc5
and I get one row with workstation detailis. WorkstationOID is table key that is binary(16).
When I use the same SQL statement from PHP using
Code:
sasql_query($connection, "SELECT *
FROM zenadmin.NC_Workstation
WHERE WorkstationOID=0x60309d8b7ec45d7c35c0700225174bc5", SASQL_USE_RESULT);
then I get zero results.
I tried stripping 0x and using pack to convert it to binary, but with no success.
Please help. I already lost one day with this.