关于sql的问题,在当前情况下,该怎么做?
比如我想调用session(“Username”)这样的参数,我该怎么写啊?<% @Language="JavaScript" %>
<%
function OpenDB()
{
DbPath="..
var sql="SELECT * FROM pubmessageinfo WHERE day(sendtime)<day(now()) and sender='"&session(“Username”)&"' order by pubdataid desc";
....
提示错误,如果不用session(“UserName")这样的东西,就提示错误,该怎么办啊?请各位大虾指教!