在简单的PHP代码中抛出T_Variable错误[重复]

This question already has an answer here:

I keep getting a T_Variable exception when running this PHP code hosted on an online database. Am not really the expert at PHP, but maybe one of you can spot the error.

thanks,

Here is the code:

$wind = "deep34"; //error thrown here. When I delete this variable. //Error jumps to $name
$name = "6";  

$sql = "select *from students where deviceid = '$name' and alpha = '$wind';";
</div>

Dont use semicolon at the end of the statement

$sql = "select * from students where deviceid = '$name' and alpha = '$wind'";