0

Hello,

I wonder why I get this error:

Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in C:\xampp\htdocs\squprime\registration1.php on line 65

line 65:  if(!empty($stu_fname && $stu_lname && $stu_email && $stu_telp && $stu_skype)){

Thanks before.

5
Contributors
4
Replies
29
Views
3 Years
Discussion Span
Last Post by veedeoo
4

As far as I know empty() only takes one variable. The error is complaining about ALL of the && in your code, not any particular one.

-4

if(!empty($stu_fname )&& ($stu_lname) && ($stu_email) && ($stu_telp && $stu_skype)){

try :)
mark question as solved.

2
if(!empty($stu_fname) &&
   !empty($stu_lname) && 
   !empty($stu_email) && 
   !empty($stu_telp)  && 
   !empty($stu_skype) )  {
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.