hi guys. i doing a project for college and i need to code like a "search engine" that will search the website and the database. the website is a online store. so if people search for a product then it should get listed. the website is not going LIVE( not uploading to a webserver) so you won't be able to use script to let another site like google search the site and display results.
EDIT: I can use asp.net and html code. not sure if that helps.
help creating a shopping website.
-
- Registered User
- Posts: 2663
- Joined: 29 Jul 2004, 02:00
- Location: hidden deep in the depths of the underworld is my home.
- Contact:
help creating a shopping website.
Last edited by DeathStrike on 11 Oct 2008, 09:49, edited 1 time in total.
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
Re: Search a website and database.
It is easy,
You simply request the root/default page and then iterate through all the links on all the pages you can hit within it. You have to be carefull though as for every page you hit you have to make sure that it is not already in your list of pages you are currently working from. If it is you run the risk of creating an infinite loop, which I don't need to tell you is BAD....
Also the db does not matter as what the users are interested in is what you see on the pages. You only have to interpret what is returned in html format.
Also be carefull that you don't follow links outside of the domain the default page is in otherwise you might end up hitting the whole web before you know it.
Happy coding. Post us some code once you have some. It might be interesting.
You simply request the root/default page and then iterate through all the links on all the pages you can hit within it. You have to be carefull though as for every page you hit you have to make sure that it is not already in your list of pages you are currently working from. If it is you run the risk of creating an infinite loop, which I don't need to tell you is BAD....
Also the db does not matter as what the users are interested in is what you see on the pages. You only have to interpret what is returned in html format.
Also be carefull that you don't follow links outside of the domain the default page is in otherwise you might end up hitting the whole web before you know it.
Happy coding. Post us some code once you have some. It might be interesting.
- Spoiler (show)
-
- Registered User
- Posts: 2663
- Joined: 29 Jul 2004, 02:00
- Location: hidden deep in the depths of the underworld is my home.
- Contact:
Re: Search a website and database.
um well u see. i don't know how to actually do that? lol.request the root/default page and then iterate through all the links on all the pages you can hit within it
-
- Registered User
- Posts: 2663
- Joined: 29 Jul 2004, 02:00
- Location: hidden deep in the depths of the underworld is my home.
- Contact:
Re: Search a website and database.
hi guys i using my old thread again. do anyone know what the code would be to allow that when a user regiters on my above website that it can send them a e-mail with there username and password?
-
- Registered User
- Posts: 2663
- Joined: 29 Jul 2004, 02:00
- Location: hidden deep in the depths of the underworld is my home.
- Contact:
Re: help creating a shopping website.
Hi guys. i am having a problem with the SQL Code for my website. Using a Access Database. The table is the "Order" table. This table has the following fields. (InvoiceID, Username, Order_Date, TotalAmount) This is the design. (Autonumber, String,Date, Currency) Here is the code
My question is what can be wrong with this statement as it gives me errors when its run.
Code: Select all
Dim datOrderDate As Date = DateString
Dim TotalAmount As Single = Session("TotalAmount")
SQLCommand.CommandText = "Insert into Order (Username, Order_Date, TotalAmount) values ('" & Session("Username") & "', #" & datOrderDate & "#," & TotalAmount & ")"
-
- Registered User
- Posts: 2663
- Joined: 29 Jul 2004, 02:00
- Location: hidden deep in the depths of the underworld is my home.
- Contact:
Re: help creating a shopping website.
hi guys. pls i really need help with this. i can't seem to find the error. another person's point of view can mayb help cos i mayb not looking right.