title: hit counter with php and mysql database
body: <p>I'm tring to make a simple php visit counter... i write this code</p>
  
  <pre><code>&lt;?php
  
  $Connect = mysql_connect('Localhost','root','');
  $Database = mysql_select_db("myDatabaseName");
  $CurrentVisit = mysql_query("SELECT visit FROM myWebsite");
  
  $NewVisit = $CurrentVisit+1;
  $UpdateField = mysql_query("UPDATE myWebsite SET visit = '$NewVisit'");
  echo $NewVisit;
  
  ?&gt;
  </code></pre>
  
  <p>When i execute this code the outpout is "5". Why? Where is the error? In my database i created an int(11) field call visit. i'm running this script on localhost.</p>