CUBRID_ERROR_CODE(3) 1 CUBRID_ERROR_CODE(3)cubrid_error_code - Get error code for the most recent function callSYNOPSIS
int cubrid_error_code (void )
DESCRIPTION
The cubrid_error_code(3) function is used to get the error code of the error that occurred during the API execution. Usually, it gets the
error code when API returns false as its return value.
PARAMETERS
This function has no parameters.
RETURN VALUES
Error code of the error that occurred, or 0 (zero) if no error occurred.
EXAMPLES
Example #1
cubrid_error_code(3) example
<?php
$conn = cubrid_connect("localhost", 33000, "demodb");
$req = cubrid_prepare($conn , "SELECT * FROM code WHERE s_name=?");
$req = @cubrid_execute($req);
if (!$req) {
printf("Error facility: %d
Error code: %d
Error msg: %s
",
cubrid_error_code_facility(), cubrid_error_code(), cubrid_error_msg());
cubrid_disconnect($conn);
exit;
}
?>
The above example will output:
Error facility: 4
Error code: -30015
Error msg: Some parameter not binded
SEE ALSO cubrid_error_code_facility(3), cubrid_error_msg(3).
PHP Documentation Group CUBRID_ERROR_CODE(3)
Check Out this Related Man Page
CUBRID_ERRNO(3) 1 CUBRID_ERRNO(3)cubrid_errno - Return the numerical value of the error message from previous CUBRID operationSYNOPSIS
int cubrid_errno ([resource $conn_identifier])
DESCRIPTION
Returns the error number from the last CUBRID function.
The cubrid_errno(3) function is used to get the error code of the error that occurred during the API execution. Usually, it gets the error
code when API returns false as its return value.
PARAMETERS
o $conn_identifier
- The CUBRID connection identifier. If the connection identifier is not specified, the last connection opened by cubrid_connect(3)
is assumed.
RETURN VALUES
Returns the error number from the last CUBRID function, or 0 (zero) if no error occurred.
EXAMPLES
Example #1
cubrid_errno(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 person
SEE ALSO cubrid_error(3), cubrid_error_code(3), cubrid_error_msg(3).
PHP Documentation Group CUBRID_ERRNO(3)
My system did stay appears the error Run Time Library Error. What itīs? When the error appear, iīve to reboot my system and lost all I did. Is there the UNIX System problem? Please. I need help!!! (4 Replies)
hi all
The following error msg was displayed in the sco server 5.0.5. can anybody explain what it is?
"WATCHDOG REINITMEMORY 6 FOR BOARD"
replies appreciated.
raguram R (3 Replies)
Hi friends,
i am getting the following error while booting my system which has SCo UNIX .
=========================
H iinit
PANIC: srmountfun-Error 22
mounting of rootdev hd(1/42)
cannot dump 40863 pages to dempdev hd(1/41) : Space for only 0 pages.
Dump not completed.
safe to power off... (3 Replies)
I am trying to debug a script. I am getting the error following errors from the code listed below. I am working in Korn shell in a Sun Solaris UNIX environment.
****************
** Error Message **
****************
$ statreports.sh 0030 1327
./statreports.sh: if: syntax error at line 31 :... (4 Replies)
I am using following code but getting error
Error on line 136:
(SQR 3710) Unknown argument type.
Given below part of program where i am getting error.......
input $p_region type=char
if ( '$p_region' = 'ESAP' )
let $msg = 'YES'
do log_msg ({PROG_NAME}, {SEV_INFO}, $msg)
else... (5 Replies)
hi there,
I was recently introduced to this site by a friend. I hope you guys can help with a code error i can't seem to debug.I can get to add two different data types together. A snippet of the code is below:
echo -n "Enter Your MOnthly Investment"
read Inv
PIP= $(echo "scale=2; 10 / 100"... (4 Replies)
Hi,
I have a log file which might have certain paragraphs.
Switch not possible Error code 1234
Process number 678
Log not available Error code 567
Process number 874
.....
......
......
Now I create an exception file like this.
cat text.exp
Error code 1234
Process number 874 (3 Replies)
Hi all,
We have below WARNING in /var/adm/messages file from our Solaris server.
WARNING: /sbus@1f,0/SUNW,fas@e,8800000/sd@0,0 (sd0):
Error for Command: write(10) Error Level: Fatal
Requested Block: 16745265 Error Block: 16745269
Vendor: SEAGATE Serial Number:... (8 Replies)
I'm getting the following Error:
prepare_pcap.c: In function `prepare_pkts':
prepare_pcap.c:127: error: dereferencing pointer to incomplete type
prepare_pcap.c:138: error: dereferencing pointer to incomplete type
====================================
This is the part of the relevant... (8 Replies)
Hi to all,
I have an AWK code that looks like this:
awk 'NR==FNR
{
#code to process file1
next
}
{
#code to process file2
a=myfunction(x)
}
END {
#Some code
b=myfunction(x)
... (3 Replies)
Hi all,
I am writing a phonebook program to store names and number using a list. Here is the code for the function which allows the user to enter the name and number (where the error occurs).
//THIS FUNCTION ADDS A NEW ENTRY TO THE phonebook_list
void insert(void){
//variables
int... (5 Replies)
So, I'm into about 650 lines of some code I'm working on. So I'll try to explain instead of flooding this post. Say I have some code like this:
int main() {
int i, j;
char data;
printf("Gimme something: ");
fgets(data, INPUT_BUFF, stdin);
for (j = 0; j < data; j++){... (6 Replies)