Re: [PHP] using strcmp()

2003-03-16 Thread Leif K-Brooks
You're missing the ; on this line: $result=strcmp($firstword, $secondword) Anthony Ritter wrote: The following test script for the function strcmp() is from page 114 -115 of PHP (Hungry Minds). I'm getting a parse error on line 6. Using PHP 4.1.1 / MS Win 98 / Apache Server. Many thanks... T

Re: [PHP] using strcmp()

2003-03-16 Thread LinuxGeek
You need a semicolon after the strcmp() function $result=strcmp($firstword, $secondword); LinuxGeek Anthony Ritter wrote: The following test script for the function strcmp() is from page 114 -115 of PHP (Hungry Minds). I'm getting a parse error on line 6. Using PHP 4.1.1 / MS Win 98 / Apache S

[PHP] using strcmp()

2003-03-16 Thread Anthony Ritter
The following test script for the function strcmp() is from page 114 -115 of PHP (Hungry Minds). I'm getting a parse error on line 6. Using PHP 4.1.1 / MS Win 98 / Apache Server. Many thanks... Tony Ritter .. =1) { $statement="comes after"; } else if