In $iptv it has two ids e.g(1,2) coming from database and these ids fetching url form 'server url' table. so when run the code it hit only first id url with the data but not hiting the second id url.
`````````````````````````````````
}elseif ($select_type == 'iptv') {
$sql=$sql="SELECT * FROM `main_partner` WHERE `id`='$partner_id'";
$result= myQuery($sql);
while($row= myFetchArray($result)){
$iptv=$row['cspiptv'];
$iptv54=explode(",",$iptv);
foreach ($iptv54 as $value){
if($value != 0){
$sql1="SELECT * FROM `server_url` WHERE `given_id`='$iptv'";
$result1= myQuery($sql1);
while($row1= myFetchArray($result1)){
$url=$row1['url'];
$url1=$url."data.php?login=".$login."&password=".$password."&expire=".$expire_date."&user_mode=".$user_mode."&mac_id=".$mac."&iptv=".$enable."&bouquet_ids=".$bonguet_id;
header('location:'.$url1);
}
}
}
}
}
question from:https://stackoverflow.com/questions/66047082/how-to-hit-link-through-array-values