602SQL Documentation Index  

wb_err_str

PHP

string wb_err_str( resource connection )


Parametry

connection
Identifier of the open connection, returned by the wb_connect or wb_pconnect function.


Popis

This function returns the text of the last 602SQL Server error.



Návratová hodnota

Text description of the last error.



Příklad

Display the last error on the SQL Server

  error_reporting(0);
  $sqlstat="...";
  wb_exec($conn, $sqlstat); /* error may occur */
  echo "<br><b>" . wb_err_str($conn). "</b><br>";
  error_reporting(E_ALL);