title: Run php file through jquery link click
body: <p>I cannot get this to work, the page already has other jquery functions running completely fine so i know jquery is working (jplayer and lazyload work fine)</p>
  
  <p>here is my javascript function:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function upone() {
      $.get("upone.php");
      return false;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Here is my link</p>
  
  <pre><code>&lt;a href="#" onclick="upone();"&gt;Like&lt;/a&gt;
  </code></pre>
  
  <p>and my php file "upone.php is :</p>
  
  <pre><code>&lt;?php
  include("include/config.php");
  include("include/functions/import.php");
  
  if(isset($_SESSION['USERID'])&amp;&amp;$_SESSION['USERID']&gt;=0&amp;&amp;is_numeric($_SESSION['USERID']))
  {
      $USERID=$_SESSION['USERID'];
  
      $query="INSERT INTO audio_like SET USERID='".mysql_real_escape_string($USERID)."'";
      $result=$conn-&gt;execute($query);
  }
  
  ?&gt;
  </code></pre>
  
  <p>the php file runs fine if i manually link to it, clicking on the link also results in the page refreshing with the # added to the page.  Any ideas?</p>