I have converted a json data to array but now i wanted to insert it into my database i keep getting Array
here is the code
for ($i=0; $i<=$checking; $i++) {
$catid = $ids[$i];
$catname = $names[$i];
$catapps = $apps[$i];
$caturl = $iconurls[$i];
$query = "INSERT INTO cat VALUES ('".$catid."','".mysql_real_escape_string($catname)."','".$catapps."','".mysql_real_escape_string($caturl)."')";
mysql_query($query);
};