Help!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help!

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\wamp\www\xbox\petition\index.php on line 61

    I HAVE ATTACHED THE FILE , THANK YOU TO ANYONE WHO CAN FIX THIS FOR ME
    Attached Files

    #2
    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\wamp\www\xbox\petition\index.php on line 61

    I HAVE ATTACHED THE FILE , THANK YOU TO ANYONE WHO CAN FIX THIS FOR ME[/b]

    find the line

    echo "-----------------


    and replace it with

    echo "-----------------
    ";

    Attached Files

    Comment


      #3
      hehe dat was dumb my bad

      Comment


        #4
        ok its either i forgot how to code or im making sum realy dumb mistakes

        Parse error: syntax error, unexpected T_STRING in C:\wamp\www\xbox\petition\index.php on line 49
        Attached Files

        Comment


          #5
          try to use
          INSERT INTO petition (`name` , `surname` , `gamertag`) VALUES ('$name', '$surname', '$gamertag')";
          istead of

          INSERT INTO petition (`name` , `surname` , `gamertag`) VALUES ('$name', '$surname', '$gamertag')

          Comment


            #6
            still getting
            Parse error: syntax error, unexpected T_STRING in C:\wamp\www\xbox\petition\index.php on line 49

            Comment


              #7
              There Ya Go by the way T_STRING can also include the use of {} used wrongly

              Code:
              <?php
              
              header("Cache-Control: no-cache, must-revalidate");
              header("Pragma: no-cache");
              echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
              echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
              ?>
              <html xmlns="http://www.w3.org/1999/xhtml">
              <head>
              <meta forua="true" http-equiv="Cache-Control" content="max-age=0"/>
              <meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/>
              </head>
              <?php
              
              
              include("config.php");
              include("core.php");
              
              
              
              $action = $_GET[&#39;action&#39;];
              
              ///////////////////////////////////MAIN
              
              if($action=="main")
              {
              echo "<p align=\"center\">";
              echo "<img src=\"../i/header.jpg\" alt=\"Xbox Live 360 ZA\"/>
              ";
              echo "Xbox Live ZA Petition</a>
              ";
              echo "
              
              ";
              echo "[b]What We Want?[/b]
              
              ";
              echo "*A Local Server Where South Africans Can Use Their Local Cap To Verse Others.
              
              ";
              echo "*A Simple Way For South Africans To Make Payments For Their Memberships , Microsoft Points , Etc.
              
              ";
              echo "*Local Xbox Support. This Includes Technical , Accounts , Billing And Any Others.
              
              ";
              echo "*A Easy Way For South Africans To Migrate Their Accounts To South African Status And Country For FREE Or For A Maximum Of R100.
              
              ";
              echo "[b]*This Should Be No Problem Since Neotel Is Offering Businesses GOOD Bandwidth Prices*[/b]
              ";
              echo "</p>";
              echo "
              [b]Petition Form[/b]
              
              Enter Your Details Bellow
              
              ";
              echo "
              <a href=\"index.php?action=signed\">View Current Signatories</a>
              ";
              echo "<font color=\"#0000FF\">Current Signatories: [b]$signatories[/b]</font>
              ";
              echo "<form action=\"index.php?action=insert\" method=\"post\">";
              echo "Name: <input type=\"text\" name=\"name\" />
              ";
              echo "Surname: <input type=\"text\" name=\"surname\" />
              ";
              echo "Gamertag: <input type=\"text\" name=\"surname\" />
              ";
              echo "<input type=\"submit\" value=\"Sign\" />";
              echo "</form>";
              }
              ///////////////////////////////////////INSERT
              else if($action=="insert")
              {
              $add = mysql_fetch_array(mysql_query("INSERT INTO xbox_petition SET name=&#39;".$name."&#39; , surname=&#39;".$surname."&#39; , gamertag=&#39;".$gamertag."&#39;"));
              echo "Thank You $gamertag For Signing The Petition. You Have Just Helped Us Bring Xbox Live To S.A
              ";
              echo "<a href=\"index.php?action=main\">Click Here To Go Back To Petition Main Page
              ";
              echo "<a href=\"../index.html\">Click Here To Go Back To Site Main Page
              ";
              ///////////////////////////////////////SIGNED
              }else if($action=="signed")
              {
              echo "Current Signatories
              ";
              $query = "Select name , surname , gamertag From xbox_petition";
              $sign = mysql_query($query);
              while ($signed = mysql_fetch_array($sign))
              {
              echo "Name:******
              ";
              echo "Surname:******
              ";
              echo "Gamertag: $signed[2]
              ";
              echo "-----------------
              ";
              }
              }else{
              echo "Request Not Found
              ";
              }
              
              ?>
              Want something coded email me at sales@webnwaphost.com for a prices.




              Comment


                #8
                thanks guys

                Comment

                Working...
                X