PHP Classes

Call to a member function prepare() on a non-object

Recommend this page to a friend!

      PHP Secure Login and Registration  >  PHP Secure Login and Registration package blog  >  Secure PHP Login Scri...  >  All threads  >  Call to a member function prepare()...  >  (Un) Subscribe thread alerts  
Subject:Call to a member function prepare()...
Summary:getting this error
Messages:4
Author:vincent vig
Date:2016-12-23 03:35:40
 

  1. Call to a member function prepare()...   Reply   Report abuse  
Picture of vincent vig vincent vig - 2016-12-23 03:35:40
Call to a member function prepare() on a non-object
line 255 of user.php in /inc

  2. Re: Call to a member function prepare()...   Reply   Report abuse  
Picture of vincent vig vincent vig - 2016-12-23 03:52:32 - In reply to message 1 from vincent vig
nevermind, was a bad connection on MySQL

  3. Re: Call to a member function prepare()...   Reply   Report abuse  
Picture of Adrian Stravitz Adrian Stravitz - 2016-12-25 02:28:15 - In reply to message 1 from vincent vig
I have the same problem.
How can i fix it ?

  4. Re: Call to a member function prepare()...   Reply   Report abuse  
Picture of daniele77 daniele77 - 2017-03-15 20:01:41 - In reply to message 1 from vincent vig
you must set the parameters in the db config file to have a connection