The If statement can be printed before it is printed in the back.
foreach ($sale _row as $key = + $value) {
$sales _id[]= $sale _row[$key] [' sales_id '];
}
// Print_r ($sales _id); exit;
There are no activities that are still in progress
if (Empty ($sale _row)) {
echo message_and_redirect (' alert ', ' currently no promotions! ',-1);
Exit
}
Print_r ($sales _id); exit;
Want to ask the first red Word to print out
But the second red word is not printed, the page is blank, do not know the middle of this sentence if there is a mistake,
When all the backstage events are out of date, the page does alert you that there are no promotions and returns. There is no mistake.
A little confused?
New posts, please help
------Solution--------------------
Print first before the IF
Print_r ($sale _row);
------Solution--------------------
Print_r ($sales _id); exit;
There are no activities that are still in progress
if (Empty ($sale _row)) {
echo message_and_redirect (' alert ', ' currently no promotions! ',-1);
Exit
}
Print_r ($sales _id); exit;
If there is an exit in your if, ah, if you do this, then of course there is no print.
------Solution--------------------
Just from the footage you intercepted, it doesn't look wrong.
Where there might be a problem, you just didn't post it.