note 42250 deleted from mysqli.connect-error by danielc

From: Date: Thu, 12 Mar 2009 20:52:21 +0000
Subject: note 42250 deleted from mysqli.connect-error by danielc
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151807@lists.php.net to get a copy of this message
Note Submitter: bero at arklinux dot org dot SPAM dot TO dot microsoft dot com Reason: 0 ---- The reason for mysqli_connect_error() not being available as $link->connect_error [looks like an inconsistency superficially] is that at the time mysqli_connect_error() matters (when something goes wrong), $link is null, and therefore not a mysqli object ---> you'd be accessing NULL->connect_error, which can't make any sense.

« previous php.notes (#151807) next »