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)
Check Out this Related Man Page
CUBRID_CLIENT_ENCODING(3) 1 CUBRID_CLIENT_ENCODING(3)cubrid_client_encoding - Return the current CUBRID connection charsetSYNOPSIS
string cubrid_client_encoding ([resource $conn_identifier])
DESCRIPTION
This function returns the current CUBRID connection charset and is similar to the CUBRID function cubrid_get_charset(3).
PARAMETERS
o $conn_identifier
-The CUBRID connection. If the connection identifier is not specified, the last link opened by cubrid_connect(3) is assumed.
RETURN VALUES
A string that represents the CUBRID connection charset; on success.
FALSE on failure.
EXAMPLES
Example #1
cubrid_client_encoding(3) example
<?php
$con = cubrid_connect("localhost", 33000, "demodb");
if (!$con)
{
die('Could not connect.');
}
printf("CUBRID current charset: %s
", cubrid_client_encoding($con));
?>
The above example will output:
CUBRID current charset: iso8859-1
SEE ALSO cubrid_get_charset(3).
PHP Documentation Group CUBRID_CLIENT_ENCODING(3)
I received an error during a reboot, I ran the in shell Diag's and got this message.
service Request Number(s)/Probable Cause or Cause(s):
21F00002:
Refer to the Error Code to FRU Index in the system service
guide.
100%
P2-Z1-A4.0
The problem is... (1 Reply)
I have a problem with file existence in shell. that is the code..
#!/bin/sh
if
then
echo "File Exist!!"
else
echo "Error"
fi
but it gives an error in 2nd line. Did i write example.txt wrong? Is there any (`) or (") missing? or something like that? (2 Replies)
Hi-
I want to redirect the output of the echo to the standard error file. We require this because, when we try to scp a file from a source server to a target server we get an error code 1. Later we found that it was due to the .cshrc file which outputs on stdout which is making the scp to fail.... (1 Reply)
Booting Problem:
Error 25: Disk read error25: Disk read error This error is returned if there is a disk read error when trying to probe or read data from a particular disk.
Does this meant I will have to change my hard drive with a new one or will this be resolved by formatting or wiping out hard... (3 Replies)
Hi All,
Need your guuys help here.
#!/bin/bash
{
echo "POLICY LIST"
echo "===================================="
bppllist
echo " "
echo "POLICY DETAILS"
echo "===================================="
for type in daily weekly monthly quarterly
echo... (6 Replies)
Number=
echo "Title"
read number
if ; -- Line 12
then
echo "smelly"
else
echo "already exist"
fi
}
okay, i do not understand the error message i am getting. when i run the program and input the Title , i keep getting an error message saying
/Bookshop: line 12: '
what is... (2 Replies)
Hi All,
am trying to add two Inputs i.e., $1 and $2,
Code
#!/bin/sh
$num_sum=`expr $1+$2`
echo "Sum = $num_sum"
am giving statement sh arithemetic.sh 20 10
am getting error
arithemetic.sh: line 2: =20+10: command not found
Sum =
I want Output as
Sum = 30, (5 Replies)
Hi all,
I am trying to winscp to RHEL5 server and i am ending up with following error.
Network error:connection timed out
The system is up and running but not able to winscp.
Tried SFTP,SCP and FTP protocols in winscp but none worked.
I can ssh into this server from another server... (3 Replies)
Please excuse me if this is an easy fix, for I am new to Unix and C
'/problem1.c: line2: syntax error near unexpected token `
'/problem1.c: line2: `main()
and for one program it has
: command not found2: (above the syntax error)
As mentioned this is in C not C++, I have complied all... (3 Replies)
please follow below code
if ; then
its giving me an error as "test1.sh: line 3: r=$(eval echo '$lck_'$TABLE != "")
if
can anyone tell me how to do inside if condition...with out use any variable..
TIA (6 Replies)
Hi,
While executing my code i am getting below Error:
./check_disk1: 0403-057 Syntax error at line 55 : `(' is not expected.
My code is :
#!/bin/ksh
PROGNAME=`basename $0`
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3
OS=$(uname)
AWK="/usr/bin/awk"... (6 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)