PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Actually I am moving the HRMS application from older to latest version of PHP but I am getting the below warnings.
Appreciate help or any suggestions to resolve the issue......
You have a couple of choices. The best would be to make sure that the $result1 array had all the array elements that are needed -- before you get to this loop.
foreach($result1 as $resultset1)
{
$stringData3="<li><a href=\"##LBL_SITE_URL##index.php/".$resultset['module_value']."/".(isset($resultset1['features_value'])?$resultset1['features_value']:'')."\">";
$stringData4=$stringData3.(isset($resultset1['features_name'])?$resultset1['features_name']:'')."</a></li>";
fwrite($fh,$stringData4);
}
It might be better to have features_value default to 0 or -1 instead of '' so you can check the value you receive from this URL. Likewise features_name default would be clearer as 'N/A' or 'NO NAME'.