Jump to content

Archived

This topic is now archived and is closed to further replies.

Prismatic

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

Recommended Posts

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


Lines 67 - 73
[code]
<?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>";
?>
[/code]

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

Share this post


Link to post
Share on other sites
it's actually this row that has the error... change:
[code]
<?php
// this...
echo "<td class='BoardRowB'>". $row[id] ".</td></tr>";

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.