LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2018, 02:08 AM   #1
Thabo
LQ Newbie
 
Registered: Feb 2018
Posts: 1

Rep: Reputation: Disabled
Angry 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']);
}
 
Old 02-17-2018, 03:50 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
You might want to change formno !=" to formno !="", and just put 'fi' at the end of the script.
 
Old 02-17-2018, 04:05 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,495

Rep: Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312
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...
 
Old 02-17-2018, 05:53 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,395

Rep: Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088
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 ( != '').
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Error Parse error: parse error, unexpected $ in /home/content/S/k/i/SkinCare4U/h CowanServices Programming 2 12-09-2008 09:26 PM
Parse error: parse error, unexpected '}' in /home/content jouvert Linux - Newbie 3 05-17-2008 07:55 PM
Parse error: parse error, unexpected $ in /home/content/d/o/m/domain/html/addpuppy2.p Scooby-Doo Programming 3 10-25-2007 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration