Hi guys,
At first i thought this may be a database problem but i think its a php problem somehow..
here is the gist.. i cannot run any queries on a database using the mysql_query function, it comes back with the error access denied for user ''@'localhost'(Using password NO)
anyway.. i have been doing some additional work and investigation and i have found that for some reason my settings file is not being processed properly..
let me explain..
i have a file, i have called settings.php which contains the DB connection string, as well as a login checker system that verifies if a user is logged in, if not it changes the page that is displayed..
Now, every page on my site, loads up and the first command used is
Include_once("settings.php");
so this should pull the settings file into the page.. however
to display the page required i use a variable called $pagetoshow
if a user is not logged in the page to show variable is set to Login
the script then calls the page in the following manner
iframe src="<? echo $pagetoshow; ?>.php"
now.. if i place the login code on the actual page, it works fine. but when its in the settings file its not working..
any ideas as to why the script is not being processed, and the page updated accordingly?
cheers
any help apreciated..
keith