27-02-2008, 05:29 PM
Ouai, ou
Code PHP :
<?php
function verif($var)
{
if(isset($var) && !empty($var))
{
return TRUE;
}
else
{
return FALSE;
}
}
function protect($string)
{
require('mysql.php');
return mysql_real_escape_string(htmlentities(trim($string), ENT_QUOTES));
}