Help me Non-Static method DB::....

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Thu Jul 12, 2012 6:32 am

Instead of DB::connect(), change it to
$db = new DB();
$db->connect();

johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Fri Jul 13, 2012 2:08 am

looks like your include file/pear db is in conflict with the php version you are using. So, when you fix one error, it will throw another one in the next line.

Post Reply