PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
guitarlvr
Forum Contributor
Posts: 245 Joined: Wed Mar 21, 2007 10:35 pm
Post
by guitarlvr » Tue May 08, 2007 3:58 pm
line 146 is:
Code: Select all
<td width="320"><?php echo "$username" ?></td>
your going to need a semicolon ';' after the doublequote before closing php.
Code: Select all
<td width="320"><?php echo "$username"; ?></td>
Also, your using the short tags to open php. its probably a good idea to use the full version rather than short tags (<?php)
Wayne
Last edited by
guitarlvr on Tue May 08, 2007 4:07 pm, edited 1 time in total.
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Tue May 08, 2007 4:06 pm
You don't even need the double quote.
Code: Select all
<td width="320"><?php echo $username; ?></td>
thefreebielife
Forum Contributor
Posts: 126 Joined: Thu Apr 26, 2007 2:59 pm
Post
by thefreebielife » Tue May 08, 2007 4:14 pm
PHP Parse error: syntax error, unexpected $end in /hermes/web10/b257/pow.thefreebielife/cash/htdocs/editaccount.php on line 507
from my error log. thats the last line and it "/html"
guitarlvr
Forum Contributor
Posts: 245 Joined: Wed Mar 21, 2007 10:35 pm
Post
by guitarlvr » Tue May 08, 2007 4:17 pm
that usually means your missing an end bracket } somewhere.
Wayne
guitarlvr
Forum Contributor
Posts: 245 Joined: Wed Mar 21, 2007 10:35 pm
Post
by guitarlvr » Tue May 08, 2007 4:22 pm
looks like you have two missing. the initial one (end bracket is missing)
Code: Select all
if (isset($_GET["form"]) && $_GET['form'] == "password") {
and if statement on line 42 doesnt seem to have one:
Wayne
thefreebielife
Forum Contributor
Posts: 126 Joined: Thu Apr 26, 2007 2:59 pm
Post
by thefreebielife » Tue May 08, 2007 4:28 pm
fixed it.
thanks for everyones help, thats why i love coming here
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Tue May 08, 2007 4:49 pm
Couple of things for later...
For your development environment, turn display_errors on and set error_reporting to E_ALL. Also, get a good syntax highlighting editor that handles code folding and bracket matching WITH error notices. 2 come to mind right now: Eclipse and PSPad.