Well on the test page, using relative url worked. I think my problem is in my site structure:
_root
|
-functions //where the database connection function is
|
-accounts //where the calling script is from
if I put them in the same dir it works fine. only if i do it like above. is there any way to use my structure from above?
when I have them in the structure above, I get these error messages:
Warning: main(functions/db_conn.php): failed to open stream: No such file or directory in /home/victorb/public_html/login_and_register/register2.php on line 206
Warning: main(functions/db_conn.php): failed to open stream: No such file or directory in /home/victorb/public_html/login_and_register/register2.php on line 206
Warning: main(): Failed opening 'functions/db_conn.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/victorb/public_html/login_and_register/register2.php on line 206
Fatal error: Call to undefined function: connecttodb() in /home/victorb/public_html/login_and_register/register2.php on line 207
Thanks!