Quote:
Originally Posted by MarcoH64
You should do a:
PHP Code:
chdir('./pathtoyourforum');
require_once('./global.php');
chdir('..');
|
Thanks for your help, but this produces this error:
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/dvcreato/public_html/news2.php on line 6
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/dvcreato/public_html/news2.php on line 6
For some reason, the chdir() function is rendering the connection to the database invalid...
When I put my script in the same directory as global.php, the global.php includes seems to work, but the includes to the MySQL connection info does not- even if I copy and paste it in...
I am looking to hire someone for consulting who knows how to solve these two problems...