Hi, I have the following line: SendSQL("INSERT INTO bugs (reg_test) VALUES (" . SqlQuote($reg_test) . ") WHERE bug_id = $bugid"); which isnt working obviously because the $bugid is still tainted. How do i de-taint a number? Best Regards, Mark Ingram Software Engineer Nexsan Technologies 33 - 35 Parker Centre Mansfield Road Derby DE21 4SZ