Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Capitalization ?!?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Capitalization ?!?

 Post Reply Post Reply
Author
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Topic: Capitalization ?!?
    Posted: 14 July 2004 at 3:42pm

Hello, I built a small Music Search engin for my website, it reads the name of the songs and the name of the file to  be played from a text file, like suppose

[Quote:Database.txt]
SongName.song21.BandName.Artist
Some Other Song Name.song82.Some other band.artist
[/quote]

now i divide each line into different parts, like suppose line 2, i will divide it in such a way, that everything before the first dot is the name of the song, then is the name of the file, then the band and at last the artist...

First problem is, that if someone enters 'dIL sE rAy' and the actual song name is 'Dil Sae Ray' so it Returns that no song of such name was found.

Either i want to make the HTML field in such a way that no matter what the user enters, it automatically Capitalizes it and then sends the Capitalized text to the ASP file to process it, or, the ASP File may read it in such a way that it may Convert 'sOme sOnG naMe' to 'Some Song Name' and then compare it, is it possible ?!?

Secondly, when i compare, i compare it in such a way, like

if Split(strCurrentTextLine,".")(0) = Request.QueryString("SongToSearch") then

.... bla bla bla, meanz the sond was found....

else..

bla bla bla, meanz the song wasent found

but this only compares if the text enter maches the name 'Exactly' as it appears in the file, is this possible that i compare it like suppose the song name is 'They Dont Really Care About Us' and someone enters 'Care About Us' so it still gives the result ?!? how can i compare that ?!?

I noe its preety long Question, but i'm stuck

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2004 at 4:20pm

Why not use a database or XML file, it will be a lot easier.

Anyway try this

If Split(LCase(strCurrentTextLine), ".")(0) = LCase(Request.QueryString("SongToSearch") Then

...

End If

Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2004 at 12:16am

Yeah! Great, that worked, actually, i some how capitalized it, and the problem regarding Database is that i donot have MS Acces in my computer

any wayz thanxx, i somehow worked it out... :)

Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2004 at 3:20pm

it happened once with me that database was read from the local server without installing any Office program. Is this normal?

ie: .mdb access database was working and results came without any problem although no Access is installed.

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2004 at 3:24pm

That is normal, this is because your server probably had MDAC (Mcirosoft Data Access Components) installed. Access is only needed to edit data, create tables etc.

(Actually it is not needed, you could make your own program to replace MS Access)

Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2004 at 5:05pm
Originally posted by zMaestro zMaestro wrote:

it happened once with me that database was read from the local server without installing any Office program. Is this normal?

ie: .mdb access database was working and results came without any problem although no Access is installed.

I am saying, that when i dont have MS Access installed, how will i make that .mdb file to read or write ?!?

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2004 at 5:11pm
You can use MS Access in your applications as long as the server has MDAC installed (near enough every server will). The MS Access application is not used to connect to the database and select data etc. - thats what MDAC is for. I.e. Access will still work in the same way even if you don't have the MS Access Application that comes with office installed - hope thats clear.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2004 at 5:35pm
Maybe to clarify for you. Access is NOT a database it is a Database Management System. The Database itself (you may say) is JET.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.