what I need is to dysplay only the first say 10 results and then have a link 'next' and dysplay 10 more in a new page
result
result
result
result
...
next
I can create a var and add 1 more for each result, till 10� end then create the link, but i don't now how to start the new page from the 11� result.
RecordId (Primary Key) TapeId (related to the taperecords table) ProgramDetails (Text)
The tape details table has a record of the programs that are stored on each tape and each tape we have about 20 programs.
What i want my users it to allow them to search by programdetails and display the list of tapes that match that search. I am not able to built a query to search and display at the same time.
I've got a date/time field in the format "9/2/2007 8:00:00 PM" that I'm pulling from my db as part of a query.
My problem is every once in a while I get a time that is 00:00:00 AM (right at midnight) and then my results display only the date with the time blank because it was all 0's. Is there a way I can force it to show the time even when its midnight?
I am trying to build a page in ASP/MSsql with the aid of dreamweaver, the page contains total of 6 Questions, each question has 3 choices, of which one of the choice contains the right answer with a hidden value = to 1 and the wrong choice hidden value = to 0. What i am trying to achieve is to collect the values and insert it to a database and at the same time display the results on the confirmation page.
Collecting data’s and inserting to the database is not a problem which i am able to do it. The area that i am stuck is the possibility to collect the values, adds the number of right answers (e.g. 1+1+0+0+1+0 = 3) and displays it on the confirmation page. I was thinking if it was possible to use cookies for this, like storing the values Q1 = 1 when it is correct and Q1 = 0 when it is wrong while submitting the form and the confirmation page retrieves the values from the cookies, addition the number of right answers ( Q1+Q2+….Q6) and display it on the page.
E.g. the confirmation page displays: Your score is 2 out of 6.
i have a record that is returned by the database as domain/username. i want to be able to strip off "domain/" and just display "username". is this possible? if so, how would i go about doing this?
i don't know what to do here exactly. i have seen the TRIM function, but i'm not sure if it's the right way to do it. i have a recordset called RSUSEREDIT. in the recordset there is a column called "EMail". i can print out the results using Code:
<%=RSUSEREDIT("Email")%>
the email column always uses the same domain name... - username@domain.com is it possible to remove the part after and including the "@"?
I have a URL... everything returned by the url, I need to write to a file. lets say its 40 lines of text... how can I write it to a text file and save it??
I'm creating a site that pulls details from a database & display it on screen. Problem is that there's sometimes loads of data which makes the page huge. What I want it to do is display ten and a next page link to display the next ten. Like the way Google displays results. Problem is I don't know how to generate pages on the fly. So the question is can it be done and does ne1 know how to do it?
First, thanks to all who have helped me over the last few weeks !! I have a form that allows the user to select multiple options. These are user names:
Fred S Bob D Paul G Dave O
When the form is submitted, I'm getting the details using
user = request.form("user")
this is returning the mutliple options. What I would like to do is pass all the options to 'user' but at one point on the results page only show the first user selected, not the multiple selection
what is an easy way to go about sorting my search results through links, you know, like clicking the link at the top of a column. i know how to pass the order by in a querystring:
but what about all the other links? what do I do with the previous querystring entries like lastname, firstname, and state? i find if i add orderlast to my lastname column and i click on it, i will have 2 orderlast querystrings
I'm using multiple recordsets on a page, and they are all returning correct results and enough of them. My problem is when I try to access the recordcount property rs.recordcount, they all return a result of -1. This would usually mean that no records are returned. So why is showing my recordsets that are displaying records with recordcounts of -1. I can't seem to figure out.
I know how to display results that contain html code on a page. (ie. <br> <b>...)
what i would like to know, is if a result contains bbc code (ie.. [code] [url]..) how would i display that to be readable?
This is not for a forum, but would be the same as if i was writting a forum. I think there is a script that the page has to contain to be able to read it correctly, but I can't find it.
My SQL statement won't return results where any field in a record is blank. What can I do to fix this?
strSQL = "SELECT * FROM newarchive WHERE Program_Title LIKE '%" & program & "%' AND Year_Aired LIKE '%" & yearA & "%' AND Sponsor LIKE '%" & sponsor & "%' AND Month_Aired LIKE '%" & monthA & "%' ORDER BY ID"
It gets its values from a form where some fields can be left blank. If the record itself does not have a blank field, the search will pick it up. But if the record contains a blank field, then it won't be selected unless it matches the Program_Title data.
I know how to use the LIKE command in a query but how do I do it in the results of a recordset results="<b>Hello</b> World"
I want to search the above result and if it has a <B> in it, I want set hasabold="Y"
I need to be able to search through a large amount of text so the BOLD marks will not always be at the front of the results. They maybe be on line 50 character 59,
I have programmed several online forms(typically using cgi).A client of mine does not like how the results are formated (the long column of text)Is there anything I can do to program the results of this online form to get put into another format that would be e-mailed to the receipient?
i have a results page on a webpage and i was wondering if it was possible to dump these results (they are stored in a database)into a excel spread sheet?
Currently I have results writing to the browser just fine (using frames).I would like to change it to where the results of a query are written to a new browser window.I have changed my asp code to be form.
I have a database in Access and I want to dislpay all the lastnames of the database through an asp file. I have managed to do that. But I want to display every 10 fields.I mean to appear 10 last names.and then to press next button and appear the other 10 and etc. Any clues?
I have a form email that was built in a .html doc that posts to a formsubmit.asp page. I have radio buttons in the form email-how do I get the results of the radio button selection to post in the email?
need to query a database and then get the results in a tab delimited file.currently am writing record by record in the file using the FSO,but just wanted to check can we directly get the results in the TAB delimited format and save to a file on the server.
Using the following query I get my desired results. However, in the resulting recordset, how can I show for example 10 words before and 10 words after the keyword or phrase that was searched upon? If I get 20 resulting records I think it would be easier for the user to decide which they want to view.
DECLARE @SearchString varchar(100) SET @SearchString = ' "stress" ' SELECT KEY_TBL.RANK, Title, Body FROM Articles INNER JOIN FREETEXTTABLE(Articles,*, @SearchString) AS KEY_TBL ON Articles.ID = KEY_TBL.[KEY] ORDER BY Rank DESC
I am going to be working on a project that is a web based survey that will submit the data to a database. But the data will also need to be multiplied by a number and displayed back to the user with some text. And was wondering if anyone had any good resources or samples I could check out I really appreciate any response.
Is there a way to grab all the results from the querystring which are sent via a form submit? In PHP, you can just do something like $var = _GET; which will grab all the fields on the querystring.
Environement with IIS, SQL server and ASP.I've got a SELECT querie on a asp page witch selects à number of rows within my table. With this results and with a form I open an other asp page who does a UPDATE on my table and returns to my first page.
When my first page opens my SELECT querie gives only the first ten results of this querie. I have to wait for about 5 minutes revising my page until he gives all results. It's so strange, that I don't know where to look! My server IIS, my server SQL or someting with my pages asp...?
I have a database with 3 fields in it ... photoname, price, job. I'm hoping to set up a drop down menu, which changes the "ORDER BY" part of the SQL query line, to one of those field names. That would enable a user to order the records (being served from an access database), by either name, price or job.
I know that it's got something to do with "request.form", but I don't know how to get the variable from the form to the SQL query. It would be 100% perfect, if the drop down menu automatically posted, when it was changed, so that it didn't need a submit button. But I think I might need to figure that out myself .
My formmail.asp results get mailed to me, with a bunch of extra characters like +'s and %'s in them..so that I can hardly read the results. I know absolutely zero about ASP but I really need this fixed.
If anyone is feeling bored..maybe you could help me out..I dont know what the problem is, but I'd just like to send the script to someone for fixing.
i have a site where i am showing staff from an office using a repeater in dreamweaver (link : http://www.remaxfinance.com.au/managers.aspx).
i want to put a button that says more info under each staff, and i guess i need to make a page names managerprofile.aspx, but how do i add that link from the managers.aspx page to the managerprofile.aspx page and have the ?&id=something. how do i make this work?
I have an access database search engine. I am trying to make it resort by clicking on one of the results.
This search engine looks through CDs and returns Title, Artist, Description, Disk Number, Track Number and Price. I would like to be able to click on the disk number and show what all is on that disk. Code: