Jump to content


Photo

Can you spot the error? Because I can't =/


  • Please log in to reply
3 replies to this topic

#1 Prismatic

Prismatic
  • Members
  • PipPipPip
  • Advanced Member
  • 503 posts
  • LocationSan Diego

Posted 12 July 2006 - 02:33 PM

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in profile.php on line 73


Lines 67 - 73
<?php
echo "</b><br><table cellspacing='2' border='0' cellpadding='2' width='100%' class='BoardRowA'>
      <tr><td class='MainMenuRow' colspan='2'>Info</td></tr>
      <tr>
      <td width='25%' height='20' align='right' class='BoardColumn'><b>UID:</b></td>
      <td class='BoardRowB'>". $row[id] ".</td></tr>
      <tr><td class='BoardColumn' height='20'  width='25%' align='right'><b>Boards Username:</b></td>
      <td class='BoardRowB'>". $RequestedUsernameStyle ." ". $RequestedUserstars ."<b>". $RequestedUserLevel ."</b></td></tr>";
?>

73 is this one
  <td class='BoardRowB'>". $RequestedUsernameStyle ." ". $RequestedUserstars ."<b>". $RequestedUserLevel ."</b></td></tr>";


#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 12 July 2006 - 02:37 PM

it's actually this row that has the error... change:
<?php
// this...
echo "<td class='BoardRowB'>". $row[id] ".</td></tr>";

// to this...
echo "<td class='BoardRowB'>" . $row['id'] . "</td></tr>";
?>

You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 micah1701

micah1701
  • Members
  • PipPipPip
  • Advanced Member
  • 613 posts
  • LocationEllington, CT USA

Posted 12 July 2006 - 02:40 PM

that was tricky, but the error is two lines above

change
<td class='BoardRowB'>". $row[id] ".</td></tr>

to
<td class='BoardRowB'>". $row[id] ."</td></tr> 

note the second period moves one place left.
"Confidence in the face of risk."

#4 Prismatic

Prismatic
  • Members
  • PipPipPip
  • Advanced Member
  • 503 posts
  • LocationSan Diego

Posted 12 July 2006 - 02:41 PM

DOH! So so simple  :P Thanks guys!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users