Your IP : 3.145.97.1
<?php function role_valid($mysql_link, $role_id){ $res = mysql_query($sql = 'SELECT * FROM types_personnels WHERE id_type_pers = '.$role_id, $mysql_link); if(mysql_num_rows($res) > 0){ return true; }else{ return false; } } function role_default(){ return 3; } ?> |