I get these errors:
Warning: include(config.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\control_panel\update.php on line 2
Warning: include() [function.include]: Failed opening 'config.php' for inclusion (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\control_panel\update.php on line 2
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\control_panel\update.php on line 11
Could not connnect: Access denied for user 'ODBC'@'localhost' (using password: NO)
I do have have a config file in the main folder htdocs.... Here is my script
<?php
include 'config.php';
/*##############################################
# Shadowcms #
# © 2011 #
# Devbest #
# #
##############################################
*/
mysql_connect($dbhost, $dbuser, $dbpass) or die ("Could not connnect: ".mysql_error());
mysql_select_db($dbname) or die (mysql_error());
$q = mysql_query("SELECT versions FROM updates WHERE versions = 'versions'");
$l = mysql_query("SELECT link FROM updates WHERE link = 'link'");
echo "New update: '$q', please download from '$l'";
?>
Any idea why its doing this?