473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

search DB and display results in DIV

37
hi, i am trying to do a search with my ASP webpage, and then display the results in a DIV tag of HTML, how would i do that, thanks
Expand|Select|Wrap|Line Numbers
  1.         strconnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; data source=" & Server.MapPath("shopping.mdb"))
  2.         strconnection.Open()
  3.         'after creating strings where clause will look up what values the strings holds
  4.         sql = "SELECT * FROM Customer_details WHERE Email = @Email"
  5.  
  6.  
i am using Access Database, i also have a FULL HTML webpage built in each ASP code, so when i link the pages up, everything is the same, but i am trying to print the results either on a new page with a list in a DIV tag or the same page in a DIV tag.


thanks
Dec 27 '07 #1
5 1800
848lu
37
can anyone help?

i really need help
Dec 28 '07 #2
idsanjeev
241 100+
hi lu
pleas show error code
i think you wants to prints all fields where email is match but how can you gett email for search in where clouse
if email feild input through form then try this and print on next page call email field in where clouse
<%
If Not IsEmpty(Request.form("Submit")) Then
R.MoveFirst
R.Find "email = " & Request.Form("email") & ""
If Not R.EOF Then
Match = strComp(R("email"), Request.Form("email"))
If Match = 0 Then
vemail = Request.Form("email")
%>
Dec 29 '07 #3
848lu
37
ok...i kinda understand what your doing on that code, but that woudnt really allow me to print within a html div tag
Dec 29 '07 #4
idsanjeev
241 100+
Hi
If i am wrong send your code. I think problem to print in div tag
Expand|Select|Wrap|Line Numbers
  1. <div style="position:absolute; left:; top:; z-index:0">
  2. <%Response.write R("value")%>
  3. </div>
  4.  
Dec 31 '07 #5
848lu
37
Hi
If i am wrong send your code. I think problem to print in div tag
Expand|Select|Wrap|Line Numbers
  1. <div style="position:absolute; left:; top:; z-index:0">
  2. <%Response.write R("value")%>
  3. </div>
  4.  

ohhh i see what your doing there, i done it like this
<div>
saksaklfj
</div>


you know you have "value", do i put my SQL in there query in there?
<%Response.write R("value")%>
Jan 2 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: CharitiesOnline | last post by:
Hello, I have set this script up to add paging to a search results page. Which on the first page works fine. I calculates how many pages there should be depending on the number of results returned...
6
by: Jules | last post by:
Hi: I have an Access 97 Search form set up - a couple of combo boxes, a couple of text fields and a command button. I want the command button to run an SQL script and then open the results form....
2
by: Sriram | last post by:
Hi, i am developing a search page, basically using datagrid. i have given a column as hyperlink so that when the user clicks on it, it gives the details of the selected item in a seperate page....
2
by: Arsalan Ahmad | last post by:
Hi, May be I am a newbie, or may be i dont have that much insight in following systems ..i.e. why i have some confusions as below: In many websites, when search is performed on some keywords...
4
by: zakhirn | last post by:
Hello, I have an extremely new user to XML and XSL, and I would like to know how to search XML data via a input form in HTML, and have the results displayed in HTML. If anyone has code that...
1
by: vHTML | last post by:
hello everyone :) I am trying to make a page which would take a "entered" on search query from the previous page and display results in google with that query in an <iframe> in the results.htm...
0
by: | last post by:
I have a question about spawning and displaying subordinate list controls within a list control. I'm also interested in feedback about the design of my search application. Lots of code is at the...
5
by: th1982 | last post by:
HI All I have a search page' s result which view 3results/per page,but my "next" link to view next page is not working. Here is my code : <?php // Get the search variable from URL ...
5
by: moorcroft | last post by:
Hi I have developed an application that people can use to search for planning applications. The way it works is that once search criteria has been selected and submit is hit, the server will save...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.