PHP Classes

Undefined property

Recommend this page to a friend!

      SqlClass  >  All threads  >  Undefined property  >  (Un) Subscribe thread alerts  
Subject:Undefined property
Summary:Error (Bug)
Messages:1
Author:Bruno Franša
Date:2006-10-02 17:52:27
 

  1. Undefined property   Reply   Report abuse  
Picture of Bruno Franša Bruno Franša - 2006-10-02 17:52:27
Please, declare the error variable in the class to previne this error:
Notice Undefined property: sql::$error script.php 15

on error verification...
if($sql->error){ // Error here!!!!
die($sql->error);
}