Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从 xslt 向扩展函数发送一些 sql 查询,如下所示:
<xsl:variable name="var1" select="ext:ExecuteSQL(concat('select * from [TABLE1] where COLUMN1='',name,'''))"/>
我得到的错误是expected token ')', found 'name',我猜这是由于'and的连续发生'。那么,我怎样才能逃脱这个角色呢?
expected token ')', found 'name'
'
'
我通过交换select属性的单引号和双引号解决了这个问题,如下所示:
<xsl:variable name="var1" select='ext:ExecuteSQL(concat("select * from [TABLE1] where COLUMN1='",name,"'"))'/>
我最近在新服务器上设置了 apache 和 php,但是我在旧服务器上呈现 xml 的 php 代码没有在下面的新服务器上呈现错误显示。请有人帮助我:
XML Parsing Error: XML or text declaration not at start of entity Location: `http://192.168.1.200/file.php` Lin