Jump to content

where..like


dream

Recommended Posts

Hello ^^here is a picture of my databasedb.JPG ********Code START**********<%@ LANGUAGE = vb script:cmdBack()" class="Menu1Title"> Precedente</a></td> </tr> </table></td> <td width="598"><%'if cd_cli = "" thenResponse.Write risposta'else'Response.Write risposta'end if%> </td> </tr></table>aa<br><a href="sheviprova.asp?user_id=<%=oRs("COD_NOTAIO")%>"><%=oRs("PA_NOME")%></a></body></html>********Code END**********In the nome = request.form("txtNome") when i search for "PA" It should show me 2 records but now it only shows me 1 and that is "PATRICK"Any help?:) y doesn't it show the asp code....

Link to comment
Share on other sites

Hello ^^here is a picture of my databasedb.JPG ********Code START**********<%@ LANGUAGE = vb script:cmdBack()" class="Menu1Title"> Precedente</a></td> </tr> </table></td> <td width="598"><%'if cd_cli = "" thenResponse.Write risposta'else'Response.Write risposta'end if%> </td> </tr></table>aa<br><a href="sheviprova.asp?user_id=<%=oRs("COD_NOTAIO")%>"><%=oRs("PA_NOME")%></a></body></html>********Code END**********In the nome = request.form("txtNome") when i search for "PA" It should show me 2 records but now it only shows me 1 and that is "PATRICK"Any help?:) y doesn't it show the asp code....
can you please post the sql statment.
Link to comment
Share on other sites

strSQL = "SELECT * FROM 000_REGISTRAZIONE WHERE COD_NOTAIO= '" & cd_cli & "' OR PA_NOME LIKE '%" & nome & "%'" 'strSQL = "SELECT * FROM 000_REGISTRAZIONE WHERE COD_NOTAIO= '" & cd_cli & "' OR PA_NOME LIKE 'PA*'" oConn.Execute strSQL oRs.open strSQL, oConn, 2, 3 'Response.write strSQL if (Not oRs.eof) then MaxCols = oRs.Fields.count for Col = 0 to MaxCols - 1 SetFieldValue "A" + oRs(Col).name, oRs(Col).value next Response.write oRs("COD_NOTAIO").value & " " & oRs("PA_NOME").value & "<br>" else risposta = "<span class='Menu1Title'>Il dati dei notaio richiestato non e stato trovato. </span>" end if

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...