Results 1 to 3 of 3

Thread: Search words in database

  1. #1
    Join Date
    Nov 2007
    Posts
    151
    Thanks
    67
    Thanked 0 Times in 0 Posts

    Default Search words in database

    Hi,

    I'm trying to build a simple search engine to my PHP site. I finished building my MySQL database, which includes 15 tables. Now I don't know how can I search words trough my database..

    I want that when I search few words it will return me the name of tables which there exist in.

    How can I do it?

    Thanks in advance.

  2. #2
    Join Date
    Apr 2009
    Location
    India
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Provide your Site link

  3. #3
    Join Date
    Apr 2009
    Location
    India
    Posts
    41
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    You want Search Word or table

    If you search word .. Use this query
    $textbox=$_REQUEST['textbox'];

    mysql_query("SELECT column_name(s) FROM table_name WHERE column_name LIKE %$textbox%")

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
  •