I don't know how to resolve this PHP Script error

Posted on 2006-11-15
Last Modified: 2008-03-06
The message I'm getting is:
Parse error: parse error, unexpected ':' in /home/content/s/c/o/scoard/html/php_uploads/natmailscreenpop.php on line 10

The script I'm using is:
/* natmailscreenpop.php - This script should return a web page depending on the phone number dialed */
if (is_null($channel)) {
  printf("No channel data was given");
else {
  switch ($channel) {
    case ‘18669343739’:

Any experts help would be greatly appreciated as this script was provided to me by a web based telephony solution provider.  Therefore, I'm NOT a PHP expert.

Thanks in advance!
Question by:ecoard
  • 2
LVL 28

Accepted Solution

gamebits earned 500 total points
ID: 17951901


in both of these line you used backtick (`) you should use quotation mark (')




LVL 28

Expert Comment

ID: 17952705
Thanks for the points and the grade.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to create a scatter graph with straight lines 6 29
Should I use subdomains or addon domains? 3 39
mysqli 3 23
Scope of $_SESSION 17 30
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now