I am having a problem inserting records into Sybase because the function getdate() is both a Sybase and PHP function. I need the function to be evaluated by Sybase, but when I put it into a query, PHP evaluates it and I receive Sybase errors. How do I go about masking this function from PHP??? Thanks.
Hello, pass the getdate-function in a string to the database. Then, PHP doesn't evaluate it.
$res = sybase_query("mydb","select xxx,getdate() from ....");
Regards Ingo