We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,442 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

PHP Unexpected $END?

Error: Parse error: syntax error, unexpected $end in _-----___ on line 89

<?php


$connect = mysql_connect("","","");
if (!$connect)
  {
  die("MySQL could not connect!");
  }

$DB = mysql_select_db('');

if(!$DB)
{
die("My SQL could not select Database!");
}

        $Car = $_POST['car'];
        $Num = $POST['num'];

        if($Car == "Alltel")
        {
            $To = "$Num" . "@message.alltel.com";
        }
        if($Car == "AT&T")
        {
            $To1 = "$Num" . "@txt.att.net";
            $To2 = "$Num" . "@mms.att.net";
        }
        if($Car == "BoostMobile")
        {
            $To = "$Num" . "@myboostmobile.com";
        }
        if($Car == "CentennialWireless")
        {
            $To = "$Num" . "@myblue.com";
        }
        if($Car == "EinsteinPCS")
        { 
            $To = "$Num" . "@einsteinmms.com";
        }
        if($Car == "Nextel")
        {   
            $To = "$Num" . "@messaging.nextel.com";
        }
        if($Car == "Sprint")
        { 
            $To1 = "$Num" . "@pm.sprint.com";
            $To2 = "$Num" . "@messaging.sprintpcs.com";
        }
        if($Car == "T-Mobile")
        { 
            $To = "$Num" . "@tmomail.net";
        }
        if($Car == "USCellular")
        { 
            $To = "$Num" . "@mms.uscc.net";
        }
        if($Car == "Verizon Wireless")
        {
            $To = "$Num" . "@vtext.com";
        }
        if($Car == "Virgin Mobile")
        {
            $To = "$Num" . "@vmobl.com";
        }
        if(isset($To))
        {
        if(!mail("$To","Thanks","Thanks!","From: Joe"))
        {
            die("Error!");
        }
        }
        if(isset($To1))
        {
                    if(!mail("$To1","Thanks","Thanks!","From: Joe") || !mail("$To2","Thanks","$Text_Message","From: Joe"))
                    {
                        die("Error cell");
                    }
                   

         $Query = mysql_query("INSET INTO subscribers (formsource,user,car,num,q1)
                            VALUES ('JJJJJJJ5622','Joe','$Car','$Num')");
                   if(!$Query)
                   {
                       die("Error");
                   }
        
        ?>
2
Contributors
1
Reply
2 Minutes
Discussion Span
2 Years Ago
Last Updated
2
Views
Joe34
Junior Poster in Training
92 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Missing } on line 79 or 87.

pritaeas
Posting Prodigy
Moderator
9,316 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,467
Skill Endorsements: 86

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0639 seconds using 2.79MB