LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Parse error: (https://www.linuxquestions.org/questions/linux-newbie-8/parse-error-4175623895/)

Thabo 02-17-2018 01:08 AM

Parse error:
 
Dear Sir/Madam
Im difficulty in correcting if statement from Windows to Linux, the first code line? your respond will be highly appreciated.

if ( != '') && ($_GET ['from'] != '') && ($_GET ['request'] == 1))
{
if ($formno != '')
send_email ($_GET ['col'] , $_GET ['from'] , $formno, $org_id, $search);
else
send_email($_GET['col'], $_GET['from']);
}

AwesomeMachine 02-17-2018 02:50 AM

You might want to change formno !=" to formno !="", and just put 'fi' at the end of the script.

pan64 02-17-2018 03:05 AM

which language is it at all? Is this only part of that script or is this the full program you have?
Would be nice to post the whole error message you got, not only parts. And how did you get it?

There is an unpaired ) at the end of the first line, probably that is your issue...

michaelk 02-17-2018 04:53 AM

Welcome to LinuxQuestions.

I assume it is PHP but posting the exact error message would help us decipher your code. As suggested the if statement has an unpaired ) and it looks like something is missing here ( != '').


All times are GMT -5. The time now is 01:41 AM.