title: jQuery .post won't read PHP include
body: <p>I built my website from bunch of php include files that work like a template. When I change something in one file whole website changes.</p>
  <p>When I click on a radio button, ajax should activate and it should try to communicate with the other php file which should connect to the database and to send information back to the original page, but it can't connect to the database, since that file contains the php include function, and it would only work if I'd put content of that include file manually there. but it won't work if it put it like this</p>
  <pre><code>include(&quot;includes/connect.php&quot;);
  </code></pre>
  <p>and if I manually paste content into that file like this it will work</p>
  <pre><code>$connect = mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;);
  mysql_select_db(&quot;demo&quot;) or mysql_error();
  </code></pre>
  <p>is there a way to make it work with include function?</p>