I have script that allows me to add new records to a table. This works fine. However, when I include this file in a script parent directroy, the file loads up, and the user enters some details. But when I hit submit, the database is no amended. I think its because its not writing to the right directory. the file is called addnews.php and the file I included it it is is cp.php. So when the user clicks on the link, the broswer is directed to the page using an include. So the path name is:
http://localhost/folder/cp.php
and
http://localhost/folder/cp.php?mode=news
the addnews is stored in the inc/ directory like so:
http://localhost/folder/inc/addnews.php.
Any help gratefully recieved.