ASP Advanced Search

Reply

Join Date: Dec 2004
Posts: 234
Reputation: cancer10 is an unknown quantity at this point 
Solved Threads: 0
cancer10's Avatar
cancer10 cancer10 is offline Offline
Posting Whiz in Training

ASP Advanced Search

 
0
  #1
Oct 17th, 2006
Well I am trying to search a database using ASP. I want to search all the names of persons in a database by their mobile number.


The mobile numbers are entered in a textarea and needs to seach them at once.

I could not figure out how can this be solved.


I am using the following code

  1. str= request.Form("txtbulk")
  2. splitarray = split(str,chr(13))
  3. for i = 0 to ubound(splitarray)
  4. 'response.write splitarray(i) & "<BR>"
  5. rs.open "select * from tblcontest where mobile='" & splitarray(i) & "'",conn,1,3
  6. next

and display the result here

  1. <table>
  2. <tr align="center">
  3. <td><% response.Write rs(0) %></td>
  4. <td><% response.Write rs(1) %></td>
  5. </tr>
  6. </table>


i am not sure if this is the correct way to code this, may be someone can help me?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP Forum
Thread Tools Search this Thread



Tag cloud for ASP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC