session_start(); $rango = mysql_query("SELECT rank_id FROM phpbb_dkranks"); $fila = mysql_fetch_array($rango) if ($fila=3) { $security_code = rand(0, 10000); }