Jump to content

Azhur

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Azhur's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I actually tried that, but I thought it was wrong since it brought yet another error. Parse error: syntax error, unexpected T_ELSE in /home/ratik/06/s6laju00/public_html/forum/index.php on line 75
  2. Now I feel stupid. Parse error: syntax error, unexpected '<' in /home/ratik/06/s6laju00/public_html/forum/index.php on line 73 They just keep on coming...
  3. All replies worked, but now a new error appeared on the next line: Parse error: syntax error, unexpected '[' in /home/ratik/06/s6laju00/public_html/forum/index.php on line 70
  4. <?php if($_SESSION['uid']) { $sql = "SELECT * FROM `users` WHERE `id`='".$_SESSION['uid']."'"; $res = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($res) == 0) { session_destroy(); echo "<a href=\"./login.php\">Kirjaudu</a> tai <a href=\"./register.php>rekisteroidy</a>!\n"; }else { $row = mysql_fetch_assoc($res); echo "Tervetuloa takaisin, <a href=\"./index.php?act=profile&id=".$row['id']."\">"."$row['username'].</a>!\n"; if(row['admin'] == '1'){ echo "<a href=\"./admin.php\">Admin-osio</a>\n"; <a href=\"logout.php\" onClick=\"return confirmLogout()\">Kirjaudu ulos</a>\n"; } }else { echo "<a href=\"./login.php\">Kirjaudu</a> tai <a href=\"./register.php\">rekisteröidy</a>\n"; } ?> Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/ratik/06/s6laju00/public_html/forum/index.php on line 69 Line 69 is: echo "Tervetuloa takaisin, <a href=\"./index.php?act=profile&id=".$row['id']."\">"."$row['username'].</a>!\n"; I have heard many solutions to T_ENCAPSED_AND_WHITESPACE dilemma, but couldn't use any of those to make my code working. Any ideas? ???
×
×
  • Create New...

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.