Jump to content

Trying the ZCI Inventory tool with php and Mysql


daddyjoge

Recommended Posts

I'm new to this and I've got everything setup except I'm getting "[b]Fatal error: Call to undefined function: dbx_connect() in C:\ZCI\zciconfig.php on line 5[/b]"

This is the code that's in that file

<?
class masterconfig {
function dbconnect()
{
return dbx_connect(DBX_MYSQL,"localhost:3306","zci","root","pwd");
}

}
?>

Please I need all the help I can get.  Crazy boss wants complete inventory by first of the year of every stinking thing we touch.  Thanks in advance.  I'm sure it's simple, but I'm still too new to understand how all this completely works together.
Link to comment
Share on other sites

Thanks, but that's not it.  I didn't explain enough of it for you really help.  The page is http://localhost/zci/manage, then there's links on the page you can click to bring up certain data.  When I click one of those links to bring data and connect to the database, the Fatal error message comes up.  The include() statements are in all the necessary places to include the zciconfig.php page.  It's just when it's time to call the function dbconnect() it gives me that error.  I've looked up several ways to define a function within a class, but that got me nowhere.  I guess the big question would be.  Does anyone know how to define a function inside of a class that is called from several different pages?  Like I said, i'm very new to this and I might have explained that wrong, but that's the best I can do.  Thank you.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.