Hi,
I instaled ZenPhoto on a subdirectory 'foto' of the root of my site and from the adress www.mydomain.com/foto/index.php the gallery works fine.
But I want to run the gallery on a frame in the mainpage of the site, when i push one button on the mainpage will run www.mydomain.com/foto/index.php in that frame. But there I get this error :
Zenphoto Error
MySQL Error: Zenphoto could not connect to the database server. Check your zp-config.php file for the correct host, user name, and password. Note that you may need to change the host from localhost if your web server uses a separate MySQL server, which is common in large shared hosting environments like Dreamhost and GoDaddy. Also make sure the server is running, if you control it.
Backtrace:
in db_connect (functions-db.php [69])
in query (functions-db.php [116])
in query_full_array (functions.php [89])
in getOption (functions.php [36])
in require_once (functions-db.php [5])
in require_once (auth_zp.php [3])
in require_once (classes.php [6])
in require_once (template-functions.php [10])
in require_once (index.php [7])
in include (functions.php [29])
in show_content (index.php [20])
Could anyone tell me what could be the cause of this error ?
I have set the right of the directory and files in the foto directory to CHMOD 777, the MySQl conection setting are OK (the script works fine when i run in browser www.mydomain.com/foto/index.php) so I don't know what's the problem.
I appreciate any sugestions.
Excuse my English and sorry for don't putting a link to the site but is a military intranet site.