Hey guys!
I am trying to learn how to use the implode and explode function and in one of my columns called subscriptionplan, I have the following information: Level 1, Level 2, Level 3. Can I do something like this for an if statement because it doesn't work for the Level 2 one..
$subscriptionplan = explode(',',$subscriptionplan);
foreach($subscriptionplan as $subscribe) {
if ($subscribe != 'Level 1') {
header("Location: index.php?level1=notexists");
exit();
} else {
header("Location: level1videos.php");
exit();
}
}