Help!
Started on the old forum in April 2008 · view the original in the archive · old links redirect here
Guest
#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
find the line
echo "-----------------
and replace it with
echo "----------------- ";
Attachments:
index.php
There Ya Go by the way T_STRING can also include the use of {} used wrongly
<?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['action'];
///////////////////////////////////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='".$name."' , surname='".$surname."' , gamertag='".$gamertag."'"));
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.