Re: [PHP-DB] how to get ERROR message

2001-07-05 Thread Dobromir Velev
Hi, dud you try to use something like this $result=mssql_query("exec x") or die(mssql_get_last_message()); instead of $result=mssql_query("exec x") or die("query failed"); Removing the "or die" part must display an error message too, but it won't end the script execution. Dobromir Vel

Re: [PHP-DB] how to get ERROR message

2001-07-05 Thread support
echo mysql_error(); Allen Lee http://MissoulaWeb.com $10/month PHP4 and MySQL hosting On Thu, 5 Jul 2001, jong jong wrote: > Hi, > > How can I see the error message from browser? My code > is like this: > > $conn=mssql_connect("xxx","",""); > mssql_select_db("xxx",$conn); >