Prevenção contra SQL Injection

From Basef
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 );