Is this the right way to do it?
HTML Code:<%if rs2("pID")=3 AND rs2("pID")=4 then Response.Write"checked=checked"%>
Printable View
Is this the right way to do it?
HTML Code:<%if rs2("pID")=3 AND rs2("pID")=4 then Response.Write"checked=checked"%>
what you probably want is this :
<%if (rs2("pID")=3 OR rs2("pID")=4) then Response.Write " checked "%>
rs2("pID") won't have the values of 3 AND 4 at the same time ...
What if I have rs("pid")=2 AND rs("ticketid")=10001 ?