title: can someone help me fix this code to once per day ip?
body: <p>I am working on a voting system with personal vote links.
  I want to make the personal vote page to register IP and make sure the IP can only vote once per day per person( creator ).
  The vote page looks like this: </p>
  
  <p><a href="http://forum.thestronghold.nl/vote4creators.php" rel="nofollow noreferrer">http://forum.thestronghold.nl/vote4creators.php</a></p>
  
  <p>Can someone help me fix the vote link page? For now it looks like this:</p>
  
  <pre><code>$sql = "UPDATE `DB3121646`.`vote4creator` SET `Votes` = Votes +1 WHERE `vote4creator`.`id` = 6;";
  $result = $conn-&gt;query($sql);
  
  if ($result-&gt;num_rows &gt; 0) {
      // output data of each row
      while($row = $result-&gt;fetch_assoc()) {
          echo " Creator : " . $row["Creator"]. " "." Votes : ".$row["Votes"]."&lt;br&gt;";
  
      }
  } else {
      echo "";
  }
  
  $conn-&gt;close();
  ?&gt;
  &lt;?php
  /* Redirect browser */
  header("Location: http://forum.thestronghold.nl/vote4creators.php");
  
  /* Make sure that code below does not get executed when we redirect. */
  exit;
  ?&gt;
  </code></pre>