Checking Array element using if condition.
$investor_array = explode(",",$project[project_investor_id]);
foreach ($investor_array as $investor) {
echo $investor;
if($investor!==$user_data['id']){
header('Location: error.php');
exit;
}
}
Please let me know how this make work if the $investor_array is like 1,26,29,30,39,48 and my $user_data['id'] = 26
Updates: On my app investor can login and see their project. But they can check other project by changed the ID like
http://192.168.1.100/srscrm/project-details-user.php?project=34
Thank You