这很奇怪,我无法弄清楚:
numArray = numArray.map(function(i) {
return i + " yards";
});
我也尝试过:
$query = "SELECT * FROM [master].[dbo].[TestTbl] WHERE Agentd_ID = "$_SESSION['agentid']" ";
我非常感谢你们的任何帮助:D
答案 0 :(得分:1)
你可能正在寻找
$query = "
SELECT
*
FROM
[master].[dbo].[TestTbl]
WHERE
Agentd_ID = \"{$_SESSION['agentid']}\"
";
但是读取https://en.wikipedia.org/wiki/SQL_injection
然后查找数据库的适当编码/转义函数(t-sql?)和/或带参数的预处理语句。
另见:
http://docs.php.net/manual/en/language.types.string.php
http://docs.php.net/manual/en/language.types.string.php#language.types.string.parsing