我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

php-在回声中使用html时出错

I am using:

if (condition) {
    ..statements..
} else {
    echo '<div class="errormsgbox">'. $json->text.'</div>';
}

But I am getting the following error (I got this error after I restarted my web server, it was working fine before that):

Parse error: syntax error, unexpected 'errormsgbox' (T_STRING) in index.php on line 49

I don't think that I have put wrong syntax, what could be wrong?

近期文章

  • jQuery在帖子中的第二个回复后停止工作[重复]
  • 使用PHP按类型将$ _POST大写到CSV文件中
  • 如何在.htaccess中使用表单POST方法传递值
  • Foreach语句打印出不正确的格式
  • 更改WooCommerce PDF发票模板中的[[ORDERINFO]]
  • 将巨大的wordpress插件数据作为数组插入wp-option表是正确的方法吗?
  • 将会话变量输入到登录用户和链接表的数据库中以获取用户名id
  • 在同一页面上用PHP读取javascript cookie
  • 如何在PHP中的文本文件中编辑不同用户的特定行
  • 在MySQL中的select语句中阻止变量计算
  • Web Crawlers似乎改变了我的HTTP_HOST值,这是典型的吗?
  • 顶级键上的PHP合并数组
  • 每3个foreach添加一个明确的div
  • 重新安排一个php数组?
  • 通过php排序csv数据
  • 如何在这个PHP文件中添加cookie [关闭]
  • 限制JSON访问只能使用一次
  • Symfony 2&mamp pro date.timezone错误
  • php中的自定义Filter数组值
  • Ajax呼叫响应未显示

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华