daddyjoge Posted December 16, 2006 Share Posted December 16, 2006 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. Quote Link to comment Share on other sites More sharing options...
fenway Posted December 16, 2006 Share Posted December 16, 2006 Sounds like a PHP error -- missing include(), perhaps? Quote Link to comment Share on other sites More sharing options...
daddyjoge Posted December 16, 2006 Author Share Posted December 16, 2006 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. Quote Link to comment Share on other sites More sharing options...
fenway Posted December 18, 2006 Share Posted December 18, 2006 All I meant to say what that that function definition isn't being included. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.