0

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
Views
6 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.