title: PHP Self-made CAPTCHA issue
body: <p>So I created my own PHP CAPTCHA, this is my method of creating it:</p>
  
  <p>I have a table in my database named 'Captchas' and in that table, I have two categories: ID and Captcha.</p>
  
  <p>On the Captcha page this is how I set it up:</p>
  
  <pre><code>$record = mysql_query("SELECT * FROM captchas ORDER BY rand() LIMIT 1");
  while($row=mysql_fetch_array($record)){
  
  $captcha = $row['captcha'];
  
  echo $captcha;
  
  }
  </code></pre>
  
  <p>Then I have a form with two inputs, text and submit</p>
  
  <p>I have the following code for the form:</p>
  
  <pre><code>echo "&lt;form method='POST'&gt;";
  if(isset($_POST['submit'])){
  $input_captcha = $_POST['input_captcha'];
  
  if($input_captcha == $captcha){
  
  echo "&lt;p&gt;Correct Captcha.&lt;/p&gt;";
  
  } else {
  
  
  echo "&lt;p&gt;Incorrect Captcha.&lt;/p&gt;";
  
  }
  
  }
  echo "&lt;input type='text' name='input_captcha'/&gt;";
  echo "&lt;input type='submit' name='submit'/&gt;";
  echo "&lt;/form&gt;";
  }
  </code></pre>
  
  <p>What this code does is checks if the user's input is equal to the captcha so it echos 'correct captcha' and if not, 'incorrect catpcha'.
  Though, the problem is that it checks if the inputted text is equal to the NEXT captcha number in the randomized array. I have no idea why this is happening?</p>