Query: cubrid_error
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CUBRID_ERROR(3) 1 CUBRID_ERROR(3) cubrid_error - Get the error messageSYNOPSISstring cubrid_error ([resource $connection])DESCRIPTIONThe cubrid_error(3) function is used to get the error message that occurred during the use of CUBRID API. Usually, it gets error message when API returns false as its return value.PARAMETERSo $connection -The CUBRID connection.RETURN VALUESError message that occurred.EXAMPLESExample #1 cubrid_error(3) example <?php $con = cubrid_connect('localhost', 33000, 'demodb', 'dba', ''); $req = cubrid_execute($con, "select id, name from person"); if ($req) { while (list ($id, $name) = cubrid_fetch($req)) echo $id, $name; } else { echo "Error Code: ", cubrid_errno($con); echo "Error Message: ", cubrid_error($con); } ?> The above example will output: Error Code: -493 Error Message: Syntax: Unknown class "person". select id, [name] from personSEE ALSOcubrid_errno(3), cubrid_error_code(3), cubrid_error_msg(3). PHP Documentation Group CUBRID_ERROR(3)
| Related Man Pages |
|---|
| cubrid_close_prepare(3) - php |
| cubrid_errno(3) - php |
| cubrid_error(3) - php |
| cubrid_error_msg(3) - php |
| cubrid_save_to_glo(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Unwanted Error Message on Screen |
| Same person? |
| An invalid XML character (Unicode: 0x1a) |
| finding the nth match |
| What's the difference between \d , [:digit:], and [0-9] in regular expression ? |