Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

maxdb_connect_error(3) [php man page]

MAXDB_CONNECT_ERROR(3)							 1						    MAXDB_CONNECT_ERROR(3)

maxdb_connect_error - Returns a string description of the last connect error

SYNOPSIS
string maxdb_connect_error (void ) DESCRIPTION
The maxdb_connect_error(3) function is identical to the corresponding maxdb_connect_errno(3) function in every way, except instead of returning an integer error code the maxdb_connect_error(3) function will return a string representation of the last error to occur for the last maxdb_connect(3) call. If no error has occurred, this function will return an empty string. RETURN VALUES
A string that describes the error. An empty string if no error occurred. EXAMPLES
Example #1 maxdb_connect_error sample <?php $link = maxdb_connect("localhost", "nonexisting_user", ""); if (!$link) { printf("Can't connect to localhost. Error: %s ", maxdb_connect_error()); } ?> The above example will output something similar to: PHP Warning: maxdb_connect(): -4008 POS(1) Unknown user name/password combination <...> Can't connect to localhost. Error: POS(1) Unknown user name/password combination SEE ALSO
maxdb_connect(3), maxdb_connect_errno(3), maxdb_errno(3), maxdb_error(3), maxdb_sqlstate(3). PHP Documentation Group MAXDB_CONNECT_ERROR(3)

Check Out this Related Man Page

MAXDB_STAT(3)								 1							     MAXDB_STAT(3)

maxdb_stat - Gets the current system status

       Procedural style

SYNOPSIS
string maxdb_stat (resource $link) DESCRIPTION
Object oriented style string maxdb::stat (void ) maxdb_stat(3) returns a string containing several information about the MaxDB server running. RETURN VALUES
A string describing the server status. FALSE if an error occurred. EXAMPLES
Example #1 Object oriented style <?php $maxdb = new maxdb("localhost", "MONA", "RED", "DEMODB"); /* check connection */ if (maxdb_connect_errno()) { printf("Connect failed: %s ", maxdb_connect_error()); exit(); } printf ("System status: %s ", $maxdb->stat()); $maxdb->close(); ?> Example #2 Procedural style <?php $link = maxdb_connect("localhost", "MONA", "RED", "DEMODB"); /* check connection */ if (maxdb_connect_errno()) { printf("Connect failed: %s ", maxdb_connect_error()); exit(); } printf("System status: %s ", maxdb_stat($link)); maxdb_close($link); ?> The above example will output something similar to: System status: Kernel 7<...> SEE ALSO
maxdb_get_server_info(3). PHP Documentation Group MAXDB_STAT(3)
Man Page

6 More Discussions You Might Find Interesting

1. BSD

Error -350

Hi All, When ever am rying to connect to the database using isqlrf from the command prompt i get the following error Error -350 is Index already exists on column. What could be the possible reason and a solutin for this ? AM using freeBSD Thanks in advance (0 Replies)
Discussion started by: jisha
0 Replies

2. Programming

Access denied for user at localhost

Hi guys. We can can connect to mysql server from command line with some user. but when using mysql_connect() it says: access is denied for user 'someuser'@'localhost' (using password: YES) what should i do? (6 Replies)
Discussion started by: majid.merkava
6 Replies

3. AIX

Networking Issues - Opera, FreeBSD, AIX

(1) Hi, Am working on FreeBSD 7.4/i386 and installed Opera 11.01 through ports collection manually... But when I run first time am getting "opera: cannot connect X server. Error: Unknown error: 0" What is this error all about???? Please help me to sort out this issue!!! (2) Hi, currently am... (12 Replies)
Discussion started by: Priya Amaresh
12 Replies

4. Programming

Need Help in Access Error

Hello Again, Please help with this link problem. Warning: mysql_connect() : Access denied for user 'myuser'@'localhost' (using password: XYZ@123) <?php function connectTo() { $host = "localhost"; $db_name = "myDB"; $username = "myUser"; $password =... (0 Replies)
Discussion started by: AimyThomas
0 Replies

5. AIX

Error while instrumenting purify

when i instrument ourify i am getting error like .*** OI_init: Error, cannot connect to X server Purify or PureCoverage slave: Warning: Can't open display "localhost:0", using tty mode. . Got it] I am using AIX1.6 OS i have xwin32 installed in my windows.. (1 Reply)
Discussion started by: greenworld123
1 Replies

6. Shell Programming and Scripting

Cannot find localhost

I get a "not found" error from this localhost/choice.php ethan@meow:~$ ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.025 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.036 m and this ethan@meow:~$ mysql -u... (4 Replies)
Discussion started by: Meow613
4 Replies