繁体   English   中英

使用 if 条件检查 Laravel 中 DB 中的值时的语法错误

[英]Syntax error when using if condition to check a value in the DB in Laravel

我在刀片syntax error, unexpected '<'

@if({{$qwinners->closeq}} == 0)

这里有什么错误?

尝试这个。 删除{{ }}

@if($qwinners->closeq == 0)

在 if 条件下删除大括号

@if($qwinners->closeq == 0)

@已经是 php 回声。 您不需要在其中使用{{ }} 只用

@if($qwinners->closeq == 0)

删除大括号{{ }} for in if 条件

@if($qwinners->closeq == 0)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM