PHP Classes

Minor adjustment

Recommend this page to a friend!

      PHP MySQL Project Documentation  >  All threads  >  Minor adjustment  >  (Un) Subscribe thread alerts  
Subject:Minor adjustment
Summary:Code throws a notice for undefined variable.
Messages:1
Author:Cauêh Queiroz
Date:2017-02-14 11:47:51
 

  1. Minor adjustment   Reply   Report abuse  
Picture of Cauêh Queiroz Cauêh Queiroz - 2017-02-14 11:47:51
In line 55 of file 'phpdbdoc.php' it goes like this:

echo 'Connection failed: ' . $e->getMessage();

when '$e' doesn't exists, so it should be '$ex', like:

echo 'Connection failed: ' . $ex->getMessage();

The rest is just fine.