New to HTML - Help with 'stdClass'

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Nazara
Forum Newbie
Posts: 1
Joined: Sat Jan 01, 2011 1:08 am

New to HTML - Help with 'stdClass'

Post by Nazara »

Hi, I'm really new to HTML, so please excuse my primitivism :)

I'm trying to install an RPG system onto my site, and I've gotten past everything, but just before it installs fully, this message comes up;

Fatal error: Call to undefined method stdClass::Connect() in /home/a1948463/public_html/ShadowsRising-0.0.5/qlib/db_funcs.inc.php on line 104

I checked line 104 and this is what it looks like;

$db->Connect($database_host, $database_user, $database_password, $database);

I'd be so grateful for a solution to this. Many thanks :)
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: New to HTML - Help with 'stdClass'

Post by social_experiment »

Nazara wrote:Fatal error: Call to undefined method stdClass::Connect() in /home/a1948463/public_html/ShadowsRising-0.0.5/qlib/db_funcs.inc.php on line 104
The method Connect() is not in the class called stdClass. Could you paste the stdClass script? Also ;) it's php that you are needing help with, not html.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply