note 43479 added to function.mysql-error

From: Date: Tue, 22 Jun 2004 18:09:29 +0000
Subject: note 43479 added to function.mysql-error
Groups: php.notes 
Request: Send a blank email to php-notes+get-71513@lists.php.net to get a copy of this message
Keep in mind when trying to get the error message from a failed mysql_(p)connect() call, you can't specify the link_identifier resource, since it will not be valid. <?php $link = mysql_connect('localhost', 'wrong_username', 'wrong_password'); if( !$link ) { // No arguments - echo mysql_error(); } ?> ---- Manual Page -- http://www.php.net/manual/en/function.mysql-error.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43479 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43479&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43479&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71513) next »