I am trying to do what I know is a very simple thing. Unfamiliar with ASP / Select statement variable syntax, I can't figure out how to:
call the page view.asp?sortcol=company_name (string)
and put the proper place holder into the web bot comment seciton declaring the sql=SELECT statement to take the string variable
Tried:
s-sql="SELECT * FROM company_table ORDER BY ::sortcol::"
s-sql="SELECT * FROM company_table ORDER BY sortcol
s-sql="SELECT * FROM company_table ORDER BY 'sortcol' "
s-sql="SELECT * FROM company_table ORDER BY &sortcol& "
s-sql="SELECT * FROM company_table ORDER BY ????????"
What is the syntax that will place this passed variable into the query statement as the order by value ???????
call the page view.asp?sortcol=company_name (string)
and put the proper place holder into the web bot comment seciton declaring the sql=SELECT statement to take the string variable
Tried:
s-sql="SELECT * FROM company_table ORDER BY ::sortcol::"
s-sql="SELECT * FROM company_table ORDER BY sortcol
s-sql="SELECT * FROM company_table ORDER BY 'sortcol' "
s-sql="SELECT * FROM company_table ORDER BY &sortcol& "
s-sql="SELECT * FROM company_table ORDER BY ????????"
What is the syntax that will place this passed variable into the query statement as the order by value ???????