lewy009 Posted April 19, 2012 Share Posted April 19, 2012 Hello, I have the administration pages up and running the css, super fish menus all working but i seem to be having a problem with connecting the the database. All procedures have been entered into the database. when i click on any admin pages such as add product etc i get the following error An error occurred in script '/home3/fournirb/public_html/trad/admin/add_other_products.php' on line 15: require(includes/mysql.inc.php) [function.require]: failed to open stream: No such file or directory Mysql connection in admin config.php if ($_SERVER['HTTP_HOST']=='localhost') { $debug = TRUE; define ('BASE_URI', 'includes/'); define ('BASE_URL', 'www.fournirbeauty.co.uk/trad/admin/'); define ('MYSQL', BASE_URI . 'mysql.inc.php'); } else { define ('BASE_URI', '/path/to/htdocs/folder/'); define ('BASE_URL', 'http://www.address.com/'); define ('MYSQL', '/path/to/mysql_connect.inc.php'); } Link to comment Share on other sites More sharing options...
Edward Posted April 19, 2012 Share Posted April 19, 2012 The REQUIRE can cause a fatal error, it means that the files cannot be found and the script will stall at that point and no longer run like it would if you have a INCLUDE. You need to check you have the mysql.inc.php script in the correct folder, check files on the server make sure the URI is correct and order of folders. That's usually what leads to this kind of error. 1 Link to comment Share on other sites More sharing options...
lewy009 Posted April 23, 2012 Author Share Posted April 23, 2012 Thanks it was a simple fix just needed the mysql.inc.php in the correct folder. Link to comment Share on other sites More sharing options...
Recommended Posts