I am trying to find out what the problem is. I have a site where i have wordpress and in an other folder i want to do something seperate and don't want wordpress to intervere with that. So i wrote a htaccess file to exclude the rewrite rules the directories i created. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ^/abb/ [NC,OR] RewriteCond %{REQUEST_URI} ^/shop/ [NC] RewriteRule .* - [L] RewriteCond %{REQUEST_METHOD} !^post$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /news/index.php [R=301] </IfModule> Code (markup): First I thought it was my htaccess that was giving me the troubles but now i am not so sure anymore. Because when i remove the connection to the database all works fine. When i include the connection part like this $connexion = mysql_connect('localhost','USER','PASSWD'); $db_selected = mysql_select_db('DBNAME', $connexion); Code (markup): I have made sure it's not something stupid like wrong user, pass etc etc it gives me this error on the page Warning: mysql_query() [function.mysql-query]: Access denied for user 'apache'@'localhost' (using password: NO) in Code (markup): That last word...NO ?????? I see it at several times that it looks like my variables are not being passed around. Is this a sideeffect of a wordpress class that is still intervering with my scripts running in a directory nextdoor to wordpress? I said it in the thread also on the htaccess...anyone that can help me solve this will be paid $25 Edwin
found it....at my test site all works but on the production site i need to declare the variables again using the POST $content = $_POST['content']; Thanks for those that looked and started to help me but this can be closed.