Extract Sentence
I need to find a script to extract a sentence around a keyword I search for in a MS Access Database.
View RepliesI need to find a script to extract a sentence around a keyword I search for in a MS Access Database.
View RepliesCode:
select a.title,a.username,b.adddate from table a,(select max(adddate) adddate from table where table.title=a.title) b
Is this "from table a" Equivalent to "from table as a" and the a.title) as b ?
Well i have txt file with abt 1000 Sentence i want that each sentence
appear on my website each time diff sentence on each visit on website
! i have done this:
<%
set Testfile=Server.CreateObject("Scripting.FileSystemObject")
set TfileStream=Testfile.OpenTextFile("C:InetpubwwwrootQuates.txt")
TextFormat=TfileStream.ReadLine
%>
<p align="center"><b>
<font face="Arial" size="2" Color="006699">
<i><align="center">
<%=TextFormat%></i></b>
</font>
But it happends for 1 sentense . i have 196 sentence in my txt file .
i want each diff sentence appear on each visit.
How do I do the following action in asp:
Suppose I have a string of word which I have pulled from my MSSQL database - "Super Fine Quality"
But I don't want to show the entire sentence "Super Fine Quality" in my page. I just want to show the word "Super" only, ie I want to display only the first word of the sentence regardless of it's length.
Without manipulating or doing anything in the MSSQL database, is it possible to remove the words "Fine Quality" and show the first word of the sentence "Super" only with the help of asp code? If yes please let me know how.
I need the sentence that should be written after a database opening to made it writable.
Code:
------
conn.open strconn
Set ob_rs = Server.CreateObject("ADODB.Recordset")
ob_rs.Open "select * from temporal", conn ,adOpenstatic **here**
where it says "**HERE**" it should be a sentence to make the database writable. if it is not, the next...
ob_rs.addnew
would tell me that the write authorization is needed.
I'm trying to grab my form field and convert the first letter of each sentence to a capital letter, and the rest of the sentence lowercase (except for I, A etc..)
I've searched all over the place, and only came across functions that convert the first letter of every word to upper case. Now they call these proper case functions. I was taught in grade school that proper case is the first letter of a sentence is capital, and the rest are lower case. So WHY does everyone call these functions proper case functions??!!?? Ok enough venting.
Anyways if you know where I can find a similar function please help me out. I'm sure I could code this, but I just don't have the time right now, and I'm tired, and the Colts lost.
I want to display a sentence in a textbox (multi line). First split the sentence into different lines based on the “,” found in the sentence, i.e.: if I have a sentence something like:
Str = Expatriate Fasilites, Salary Negotiable, Direct Hire
strSplite = Splite(str,”,”)
And it should look like this in the textbox (multi line)
Expatriate Fasilites
Salary Negotiable
Direct Hire
Im trying to remove every single letter word in a sentence [a-z] or [0-1] and remove duplicate spaces in the result if any.
"a car is good" = "car is good"
"drink a beer" = "drink beer"
how to parse a string for everything between the <p> and </p> tags .
View Replies View RelatedMaybe a simple question but baffling me a bit. What I am doing is spanning a form across several pages, I was going to use session variables to collect the data but there are some 23 questions which can be of various lengths in answer form so I have opted to fill in a database entry. Multiple users may be logging onto the site at any one time.
What I need to do is create just one session variable - the user_ID which is allocated once the first database entries are initially added.
The question:If I am doing an 'INSERT into tablename values 1, 2, 3, 4 (thus creating a new record) how can I automatically get the user_ID (which is an autonumber field in the database) straight back out and allocate it to a session variable?) - we are trying to avoid a 'login' procedure
I MUST EXTRACT SOME ID FROM A SIMPLE TABLE.
I RECEIVE ID REQUEST FROM FIVE CHECKBOXS IN A RECORD SET
LIKE BELOW:
<input type="checkbox" name="id" value="<%=rs_s("id")%>">
HOW CAN I RECEIVE THE EXACTLY ID AND SUM IT BY A SQL QUERY??
I TRYED IN THIS WAY:
<%Server.CreateObject("ADODB.Recordset")
Set Rs_sum = Conn.Execute (" SELECT SUM(quota_sc) as quota FROM supplementi WHERE id IN (" & Request("id") & "); ")
BUT IT DOESN'T WORK.
I have a search engine and i want to extract only the URLs and the descriptions from the results which
come from the search, then i want to insert them into a database.How can i do that?
Trying to extract tab delimited data from several zipped .txt and .jpg archives into a database on the fly. I know there are some components out there to help with this, but this has to run on a regular web host (win2k) and I don't have the ability to install components on the server.
View Replies View RelatedI need to extract text from word document to asp page.
View Replies View Relatedhey everyone, does anyone knows how to extract data to extract from XML documents through the use of ASP or VB applications .
View Replies View RelatedHow do you fetch just the domain name part of a variable in a script?
The variable can be
http://www.domain.com/blahblah/whatever/page.htm
or
http://sub.domain.com/blahblah/whatever/page.htm
What I need is to extract just the "domain.com"
i want to extract out certain column from my table . can i do it using the checkbox . eg. when i got ten check box then when i select 4 of it . the selected 4 column will appear in my next page . can i do it this way ? or is there any other easier way ?
View Replies View RelatedCan anyone help me to write a scrip to extract an email address, name and address from an xml file.
A sample file looks like this:
Does anyone know how (using ASP & VBScript) how to extract the description from a webpage. I mean the meta description contained in the HTML (eg <meta name="description" content="description of website">).
View Replies View Related6408373-SALE-11/1/2007
From string, i want to extract "SALE"
How to do it using mid and Instr ?
Also,
6408373-DECLINE-11/1/2007
From string, i want to extract "DECLINE". How to do it using mid and Instr ?
I was wondering if anyone could help me out with extracting/stip an HTML file. I was thinking of using RegExp object in VBScript, but I'm not sure what is the correct pattern.
I would like to stip the HTML so I only get the content inside the <BODY> tag (<BODY> </BODY>) ...
Ive been searching the net now for about a week for someway to extract all of the links and images out of source code. I want to make a search engine. I can get the HTML of an entered URL, but now I need to EXTRACT all of the links e.g href, src and I want to place them into an access database.
View Replies View RelatedI currently have an excel flat database, it contains a computerName and it has a list of parts associated with it next to the cell value of computerName.There values that are offsetted to the right are the parts associated with the computer name. I was wondering through ASP could i have a dropdown of the computerName, when clicking submit it will find the offsetted values to the right.
View Replies View RelatedIs it possible to extract meta data (resolution, copyright, aspect ratio etc)from an mp4 file onto a web page? If so, how?
View Replies View Relatedi want to import data from excel and save it in sql server data base.my problem is how open excel file and read it cols by cols or rows by rows.
View Replies View Relatedhow to extract a pic from ms access database.I used simple codes found online but it only gives me the binary codes not the pic itself.Wondering if anyone could help.I have already put the picture in the database.Now is extracting it.
View Replies View RelatedI'm using the following method to retrieve the filname from a full server path:
<%
sub getfname(strPath)
Dim fName
fName = Mid(strPath,InStrRev(strPath,"")+1)
'fName = strPath
Response.Write( fName )
end sub
%>
However this only works on Windows systems as it checks for backslash. Is there a more generic way to do this, or should I check for both backslash and slash in the path?
Is there any way to extract the form elements' value without submitting the form. I want the value of the form element be used in the script written in the same page without submitting the form.
View Replies View RelatedI have several (well, several hundred) word documents. I need to extract information from each such as Author, Date Created etc... how would I go about doing this for a single document?
View Replies View RelatedI am trying to create a short description by taking the first 100 characters from my description field. My code is: Code:
shortdesc=left(objpagingrs("description"),100) & "..."
How would I make this take the first 100 characters (as it is now) but also take the next few letters until the next space. (so that I don't cut a word in the middle.)
I have a field in an access db which is of the data type Date/Time holding a date in the format, Short Date. Thefore it looks like 10/03/2004. The table holds a lists of events and I want to list them all by month breaking on the month as a header (and only listing for months which have events), like so:
MARCH
10/3/2004 Event Title
APRIL
1/4/2004 Event Title
JUNE
1/6/2004 Event Title
How can I display just the month from this field?
How do I extact fields names (not values) from the Request object?
View Replies View RelatedI ve a text paragraph something like
sample sample sample sample Join Bytes! <ee@ss.comsample sample
sample sample sample sample sample sample sample sample
Join Bytes! sample sample sample <ww@example.comsample sample
sample sample sampl Join Bytes!
i want to extract email ids from the above text paragraph.. using
Active server pages or php can u give me some clue to find a
solution.
i ve tried some regular expression technique to sort out this problem
but.i cant get the proper output