PHP error in Netbeans IDE

olucyb4

New Member
I am currently using a PHP 5 along with Netbeans IDE to create a login page.However Netbeans seems to not understand the codes that I have added into the console box. The error originates from the "echo "....." line.The codes are as follows:\[code\]$query = mysql_query($sql) or die(mysql_error()); echo "Thank You for registering {$first_name}! Your username is {$username}"; echo "<a href="http://stackoverflow.com/questions/3664506/index.php"> Click here </a> to Login";}}?>\[/code\]The errors shown are:-Syntax error: Unexpected : Index-Syntax error: Unexpected : StringPlease do help. Thanks.
 
Back
Top