Reputation: 324
Happy easter everyone! :)
Does anyone know what's wrong with this double IF condition:
if (empty($_POST['request_article_form'])) and empty($_POST['article_number_article_table'])) {//blabla }
Error from IDE: Fix [1/1] Syntax error, unexpected T_LOGICAL_AND on line 37
Upvotes: 0
Views: 39
Reputation: 1030
')' is added extra
Use this
if (empty($_POST['request_article_form']) and empty($_POST['article_number_article_table'])) {
// do something
}
Upvotes: 2
Reputation: 27102
Just count brackets, you open it 3 times, close 4 times.
if (empty($_POST['request_article_form']) and empty($_POST['article_number_article_table'])) {
// do something
}
Upvotes: 0