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

General discussions related to php

Moderators: macek, egami, gesf

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

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

Post by johnj » 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: 1805
Joined: Thu Mar 10, 2011 5:07 pm

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

Post by johnj » 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

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest