hello,
I'm in problem see this codes
$SQL = "select * from setting ";
$Result = mysql_query($SQL);
$getinfo = mysql_fetch_array($Result);
$ext_file = $getinfo["types"];
// var ($ext_file) == gif,jpg,png,zip
$Ext = array($ext_file);
if(in_array("rar",$Ext)){
ECHO " I Found ";
}else{
ECHO " Not Found";
}
print
echo "1 :".$Ext[0]." 2 :".$Ext[1];
but $Ext[1] NULL 😕 and $Ext[1] = "gif,jpg,png,zip" All :bemused:
$r = explode(",",$ext_file);
$c = count($r);
echo $c; // 6
help me ...