Jump to content

CreateObject(...) problem


jotate

Recommended Posts

Trying to get a php based open source app working.  Troubleshooting why I couldn't get anything to output to the screen on the default page, I've narrowed the crash down to this piece of code:

 

define ('DB_ENGINE', SQL_MYSQL);

$sql = CreateObject (
'PHP.sql', 
DB_ENGINE,
array(
	'host' => DB_HOST, 
	'user' => DB_USER, 
	'password' => DB_PASSWORD, 
	'database' => DB_NAME,
)
);

 

I'm kind of new to the level of PHP work used for this application, so I'm kind of left just diving into it.  I can't tell where this object is used later.  It's obviously setting up what I'd guess is the connection object.  I did some searching on the CreateObject() function and found little to nothing that wasn't in languages not supported by my browser.  :(

 

If anyone could give me some tips or context to this little bit that might help me identify what's breaking in this, I'd greatly appreciate it.

Link to comment
https://forums.phpfreaks.com/topic/70463-createobject-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.