<br>Thanks! this should do the job.<br><br><div class="gmail_quote">On Wed, Mar 3, 2010 at 8:27 AM, Domenic Santangelo <span dir="ltr">&lt;<a href="mailto:domenics@gmail.com">domenics@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="http://api.drupal.org/api/function/db_query/6" target="_blank">http://api.drupal.org/api/function/db_query/6</a><br>
<div><div></div><div class="h5"><br>
<br>
On Mar 2, 2010, at 3:08 PM, spartaguy spartaguy wrote:<br>
<br>
&gt;<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I want to use the data from a textbox input to do a select statement on a sql db.<br>
&gt;<br>
&gt;  Are there any inbuilt methods that drupal uses to sanitize textbox inputs?<br>
&gt; I&#39;m worried if I accept data in a textbox and apply it to an sql command it will do bad stuff (tm).<br>
&gt;<br>
&gt; Is there a simple code snippet or module for sanitizing?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Paul<br>
&gt;<br>
</div></div>&gt; --<br>
<div><div></div><div class="h5">&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br>