title: Execute php script from html
body: <p>I'm trying to connect to my SQL server to get some data in a html table.
  To do this, I have a php script with the necessary code.
  The issue is to execute the script.</p>
  
  <p>How can I tell html (or javascript) to execute the script?</p>
  
  <p>I can tell you, these methods didn't work for me</p>
  
  <p>Javascript</p>
  
  <pre><code>$.get("testConnection.php");
  </code></pre>
  
  <p>(I have no idea where to put this next code)</p>
  
  <pre><code>AddType application/x-httpd-php .htm .html
  </code></pre>
  
  <p>I've read that it's possible to send a request via Ajax, but how can I connect to my server (example: mysql5.test.com) and database (databaseForTesting).
  Also, I don't have any experience/knowledge in Ajax.</p>
  
  <p>Thanks!</p>