RE: [PHP-DB] sybase_query()

2001-07-05 Thread jong jong
1 failed"); > sybase_free_result($result); > > $result=sybase_query("insert into pub_info > values(0001,null,'test')") or > die("query2 failed"); > sybase_free_result($result); > > $result=sybase_query("select * from pub_info"); &g

Re: [PHP-DB] sybase_query()

2001-07-03 Thread Frank M. Kromann
Hi, I would suggest removing @ in front of the sybase_query. This way your code will produce warnings and messages from the server. That could help you debugging. You could also try to execute the query in Query Analyzer on the SQL Server. - Frank > Please take a look into my simple php code.

[PHP-DB] sybase_query()

2001-07-03 Thread jong jong
Please take a look into my simple php code. Why does this program die on "query2 failed" but a new record acturally is inserted into table "pub_info"? I asked this question last week, but didn't get any answer so far. If you don't see any problem in there, please let me know. This is my last try