【发布时间】:2021-09-13 07:26:21
【问题描述】:
完全错误: 解析错误:语法错误,意外的 '' (T_ENCAPSED_AND_WHITESPACE),在 C:\xampp 中需要 '-' 或标识符 (T_STRING) 或变量 (T_VARIABLE) 或数字 (T_NUM_STRING) \htdocs\Source Code\displaysalesdetailed.php 第 48 行
这是我所拥有的:
$msgtocustomer = "You have sent purchase request for - $rsproduct[title]. To check the quality of the produce,
you can contact $rsseller[
seller_name] at $rsseller[mobile_no]. Farmer's Address: $rsseller[seller_address], $rs13city[city],
$rs12state[state], $rs1country['country']. ";
【问题讨论】:
-
第48行是哪一个?
-
您可以尝试用
{和}包围您的每个数组变量,这可以消除解析器的混乱。变量名称中是否真的存在换行符,或者仅当您在此处发布代码时?为什么有时会在索引名称周围加上单引号,而有时不会?
标签: php html css bootstrap-4 error-handling