blank page after editing

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

User avatar
guitarlvr
Forum Contributor
Posts: 245
Joined: Wed Mar 21, 2007 10:35 pm

Post by guitarlvr »

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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

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 »

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"
User avatar
guitarlvr
Forum Contributor
Posts: 245
Joined: Wed Mar 21, 2007 10:35 pm

Post by guitarlvr »

that usually means your missing an end bracket } somewhere.

Wayne
User avatar
guitarlvr
Forum Contributor
Posts: 245
Joined: Wed Mar 21, 2007 10:35 pm

Post by guitarlvr »

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:

Code: Select all

if ($e == "none") {
Wayne
thefreebielife
Forum Contributor
Posts: 126
Joined: Thu Apr 26, 2007 2:59 pm

Post by thefreebielife »

fixed it.

thanks for everyones help, thats why i love coming here :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

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.
Post Reply