Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cubrid_errno(3) [php man page]

CUBRID_ERRNO(3) 							 1							   CUBRID_ERRNO(3)

cubrid_errno - Return the numerical value of the error message from previous CUBRID operation

SYNOPSIS
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 charset

SYNOPSIS
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)
Man Page

14 More Discussions You Might Find Interesting

1. AIX

Error Message during Diag

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)
Discussion started by: marvin51796
1 Replies

2. UNIX for Dummies Questions & Answers

File existence problem

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)
Discussion started by: anormal
2 Replies

3. UNIX for Advanced & Expert Users

Redirecting to Error File

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)
Discussion started by: lorcan
1 Replies

4. Linux

Grub Error 25

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)
Discussion started by: etcpasswd
3 Replies

5. Solaris

Error when running script

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)
Discussion started by: ronny_nch
6 Replies

6. Shell Programming and Scripting

Syntax error

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)
Discussion started by: gregarion
2 Replies

7. Shell Programming and Scripting

Error with Expression

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)
Discussion started by: sunnix
5 Replies

8. UNIX for Dummies Questions & Answers

winscp error: Network error connection timed out

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)
Discussion started by: lramsb4u
3 Replies

9. Programming

Help Unknown Syntax Error

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)
Discussion started by: apolo93
3 Replies

10. Shell Programming and Scripting

Error: if condition

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)
Discussion started by: gnnsprapa
6 Replies

11. Shell Programming and Scripting

0403-057 Syntax error at line 17 : `(' is not expected.

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)
Discussion started by: abodage
6 Replies

12. Shell Programming and Scripting

Code optimization

Hi all I wrote below code: #!/bin/sh R='\033 do you have any idea how to optimize my code ? (to make it shorter eg.) (11 Replies)
Discussion started by: primo102
11 Replies

13. Programming

Logical Error With Type Conversion In C

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)
Discussion started by: Azrael
6 Replies

14. UNIX for Beginners Questions & Answers

Ls followed by grep

Hi, On AIX 7.1 I run the following: ls -lrt | grep "Dec 18 14" -rw-r--r-- 1 user1 dba 1015 Dec 18 14:00 l21088100.req -rw-r--r-- 1 user1 dba 2491 Dec 18 14:01 l21088103.req -rw-r--r-- 1 user1 dba 1294 Dec 18 14:01 l21088102.req -rw-r--r-- ... (3 Replies)
Discussion started by: big123456
3 Replies