PHP出现Parse error: syntax error, unexpected ✀`✀

2024-12-31 15:50:15
推荐回答(3个)
回答1:

$sqltr1=Mysql_query("select*from uc_applications where name=’".$sqlname."",$conn);是这样的,name在表中是varchar类型,字符串。所以查询用到单引号‘

回答2:

$sqltr1=Mysql_query("select*from uc_applications where name="`.$sqlname.`"",$conn); 改为 $sqltr1=Mysql_query("select * from uc_applications where name='".$sqlname"'",$conn);

回答3:

`这东西不是单引号吧,单引号是’

`这个是~下面那个,你弄错了