Hi
I need to search for matching strings in a database and I want to print out all files that matches in "detail", which means that I want the output to contain datum of last saving. I only get the grep function tp print the actual file names which is not enough since the database is to large... (14 Replies)
I'm currently fixing a bug in a C program in which I need to check to make sure another specific application is up and running before continuing.
Are there any SunOS API functions that can provide me with a list of currently running processes on the system? I'd like to avoid using 'ps' with a... (1 Reply)
I created a large file list using:
find . -type f -mtime +540 > test2.txt
..which searched recursively down the directory tree searching for any file older than 540 days.
I would like to filter the results removing the directory name and the "/" character, resulting in only a list of the... (3 Replies)
Hi I have 2 files a.c and a.bak where I changed long to int using awk script.
I want to get the list of functions whose parameters got modified
for eg: fun ( long a, long b ) might be changed to fun ( int a, int b ) (1 Reply)
Hello
I have a problem with retreiving network interface list using IOCTLs. I have 4 interfaces:
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope... (1 Reply)
I have a situation where I would like to retrieve a list of ids on AIX 5.3 server, which do not have proper gecos information. The need is to fix all of these ids before it gets flagged as an audit exposure. Can someone please help me with a command/script to retrieve this list?
G (3 Replies)
I'm looking for some suggestions on a command line utility I am making. I would like to use 'find' to locate some files and index the results so the user can choose the correct results from the list and push that input into an open command. A simple example below:
... (2 Replies)
Hello,
I think there's an easier way to do this but can't seem to recall but given an array of animals and an initial value is a random index in the array, here it's 3.
3,4,5,4,3,2,1,0,1,2,3,4,5,4,3,2,1,0... inifinite repeat
a quick brute force solution i came up with was two functions, i... (6 Replies)
Discussion started by: f77hack
6 Replies
LEARN ABOUT PHP
pdo.errorinfo
PDO.ERRORINFO(3) 1 PDO.ERRORINFO(3)PDO ::errorInfo - Fetch extended error information associated with the last operation on the database handle
SYNOPSIS
public array PDO::errorInfo (void )
DESCRIPTION RETURN VALUES PDO.errorInfo(3) returns an array of error information about the last operation performed by this database handle. The array consists of
the following fields:
+--------+---------------------------------------------------+
|Element | |
| | |
| | Information |
| | |
+--------+---------------------------------------------------+
| 0 | |
| | |
| | SQLSTATE error code (a five characters alphanu- |
| | meric identifier defined in the ANSI SQL stan- |
| | dard). |
| | |
| 1 | |
| | |
| | Driver-specific error code. |
| | |
| 2 | |
| | |
| | Driver-specific error message. |
| | |
+--------+---------------------------------------------------+
Note
If the SQLSTATE error code is not set or there is no driver-specific error, the elements following element 0 will be set to NULL.
PDO.errorInfo(3) only retrieves error information for operations performed directly on the database handle. If you create a PDOStatement
object through PDO.prepare(3) or PDO.query(3) and invoke an error on the statement handle, PDO.errorInfo(3) will not reflect the error from
the statement handle. You must call PDOStatement.errorInfo(3) to return the error information for an operation performed on a particular
statement handle.
EXAMPLES
Example #1
Displaying errorInfo() fields for a PDO_ODBC connection to a DB2 database
<?php
/* Provoke an error -- bogus SQL syntax */
$stmt = $dbh->prepare('bogus sql');
if (!$stmt) {
echo "
PDO::errorInfo():
";
print_r($dbh->errorInfo());
}
?>
The above example will output:
PDO::errorInfo():
Array
(
[0] => HY000
[1] => 1
[2] => near "bogus": syntax error
)
SEE ALSO PDO.errorCode(3), PDOStatement.errorCode(3), PDOStatement.errorInfo(3).
PHP Documentation Group PDO.ERRORINFO(3)