/    Sign up×
Community /Pin to ProfileBookmark

I keep getting this parse error on line 283 and I cant seem to figure out why I am getting it.

the code

[code=php]
while ($x < $row)
{
echo “<table width=100% align=”left”>”;
echo “<tr><td>Name:&nbsp;&nbsp;&nbsp;”.mysql_result($result, $x, “typeid”).”</td><td>”.mysql_result($result, $x, “producttype”).”</td></tr>”;
echo “</table>”;
$x++;
}
}
?>
</td>
</tr>
</table>
}
<?php
whattodo($_SERVER[‘../PHP_SELF’].”?stepflag=insert1″, $_SERVER[‘../PHP_SELF’].”?stepflag=read”, $_SERVER[‘../PHP_SELF’].”?stepflag=update1″);
?>
</body>
</html>
[/code]

line 283 comes directly after the closing html tag, I’m sure it something stupid that I keep overlooking so maybe one of you can pick up on it immediatly

tia

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@DARTHTAMPONauthorNov 11.2004 — never mind found it as soon as I pposted on forum

changed
[code=php]
</table>
}
<?php
[/code]


to
[code=php]
</table>
<?php
}
[/code]


thanks
Copy linkTweet thisAlerts:
@Daniel_TNov 11.2004 — I don't believe $_SERVER['../PHP_SELF'] is a registered server variable... do you mean $_SERVER['PHP_SELF']?
Copy linkTweet thisAlerts:
@DARTHTAMPONauthorNov 11.2004 — both seem to work fine. not sure why I added the "../".
×

Success!

Help @DARTHTAMPON spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...