title: adding 5 to the $i after inserting the $i
body: <pre><code>&lt;?php
   mysql_connect("localhost", "root", "");
   $db=mysql_select_db("test");
   $i=1;
   $r=" INSERT INTO test1 (score) VALUES ('$i') "  ;
   $t=mysql_query($r);
   if($t){ 
    $i=$i+5;
    echo  "done"; 
   } else { 
     echo "not done"; 
   }
  ?&gt;
  </code></pre>
  
  <p>I am writing a very simple program but I am new in the php world so I am not able to find the logic . . I have defined the $i value ie 1 and I want to insert the value into the database</p>
  
  <p>When the user again refreshes the page , $i value should add 5 and then insert the value . please can anybody tel me how it will b done ??</p>