summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-04-02 13:26:38 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-04-02 13:26:38 +0200
commit8fd08a101991f2b1a5d0a7f4b2418b0be6c51ecd (patch)
tree47e1c04d094d7b3989255607932204569257cd08
parent36b0c949fdb16163e4b57b1db0cbc777941eff6f (diff)
Updated captcha helper example in the documentation to use the correct db field.
-rw-r--r--user_guide/helpers/captcha_helper.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_guide/helpers/captcha_helper.html b/user_guide/helpers/captcha_helper.html
index ab684f3d9..5169b06b3 100644
--- a/user_guide/helpers/captcha_helper.html
+++ b/user_guide/helpers/captcha_helper.html
@@ -167,7 +167,7 @@ $expiration = time()-7200; // Two hour limit<br />
$this-&gt;db-&gt;query(&quot;DELETE FROM captcha WHERE captcha_time &lt; &quot;.$expiration); <br />
<br />
// Then see if a captcha exists:<br />
-$sql = &quot;SELECT COUNT(*) AS count FROM captcha WHERE word = ? AND ip_address = ? AND date &gt; ?&quot;;<br />
+$sql = &quot;SELECT COUNT(*) AS count FROM captcha WHERE word = ? AND ip_address = ? AND captcha_time &gt; ?&quot;;<br />
$binds = array($_POST[&#x27;captcha&#x27;], $this-&gt;input-&gt;ip_address(), $expiration);<br />
$query = $this-&gt;db-&gt;query($sql, $binds);<br />
$row = $query-&gt;row();<br />