Help!

Started on the old forum in April 2008 · view the original in the archive · old links redirect here

7 replies · 517 views · started 18 years ago · 1 min read

2 participants
MatrixIS Developer · 53 posts #1

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

Attachments: index.php
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 "----------------- ";

External image (may be gone)

Attachments: index.php
MatrixIS Developer · 53 posts #3

hehe dat was dumb my bad

MatrixIS Developer · 53 posts #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

Attachments: index.php
Guest #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')

MatrixIS Developer · 53 posts #6

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

crazybrumi Super moderator Principal · 1,064 posts #7

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.

http://flagcounter.com/more/W80q

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close