Results 1 to 2 of 2

Thread: Database Query

  1. #1
    Join Date
    Jul 2005
    Location
    Planet Earth
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Database Query

    Hi,

    How can i use java scripts to search a database to give back results
    when searched for? Can someone help me with the script and let me know
    how to use it.
    I wanted a script that could work like in the ones that work on yellowpages

    eg:- http://www.yellowpages.com.au

    please help

    redice

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by redice
    How can i use java scripts to search a database to give back results when searched for?
    You can't. Database-related activities are performed on the server using a server-side language.

    Can someone help me with the script and let me know how to use it.
    Search mechanisms aren't usually generic; they are specific to the content and schema. That said, the principle is typically the same.

    I wanted a script that could work like in the ones that work on yellowpages
    That particular site appears to be using Java Server Pages (JSP).

    On a point of pedancy: Java and JavaScript (and other ECMAScript derivatives) are completely unrelated. Furthermore, there's no such thing as 'java script(s)' or Javascripts, just like there aren't C++s.

    Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •