Prevenção contra SQL Injection

From Basef
Revision as of 14:23, 9 September 2015 by Admin (Talk | contribs) (Criou página com 'Link externo: [http://developer.joomla.org/tutorials/181-preventing-sql-injections.html Prevenção contra SQL Injection] Para integers: <source lang="php"> $clean['suavaria...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Link externo: Prevenção contra SQL Injection

Para integers:

$clean['suavariavel'] = intval( $suavariavel );

Para strings:

$db =& JFactory::getDBO(); 
$clean['suavariavel'] = $db->getEscaped( $suavariavel );