Jump to content

[SOLVED] Keep getting "unexpected $end" error


advancedfuture

Recommended Posts

I keep getting the "Parse error: syntax error, unexpected $end in C:\wamp\www\index.php on line 24" error.... I have everything closed properly with brackets, etc... what am I missing? Thanks!

 

<?php
session_start();
$username = $_SESSION['username'];
$token = $_SESSION['token'];
//echo $username ."<br>"; debug code
//echo $token ."<br>"; debug code

include 'dbConnect.php';
$query = "SELECT token FROM users WHERE Username = '$username'";
$results = mysql_query($query);
$num = mysql_num_rows($results);

while($row=mysql_fetch_array($results))
{
$dbtoken = $row[0];
}

echo $dbtoken;
echo $token;

?>

Link to comment
https://forums.phpfreaks.com/topic/84945-solved-keep-getting-unexpected-end-error/
Share on other sites

Archived

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

×
×
  • 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.