Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Setting up search "area"

  1. #1
    Join Date
    Feb 2007
    Posts
    601
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    Hello again ,

    As usual i need to ask more questions , and this time it is how do i set up a search thing so that people can search for what they want and a page comes up with results ?

    As always i will accept help from anyone
    Last edited by tech_support; 04-13-2007 at 03:59 AM.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    What exactly are you trying to accomplish? What do you want the users to search through (the web, your site, etc). I think that your question may just be too vague for any one person to have an answer to (or at least there would be mulitple answers by that one person) or something like that.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Feb 2007
    Posts
    601
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your post , but i don't know what vague means and what i need is that the search thing can work on my site (not that there is one but i will create a simlple one).

  4. #4
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Vague is the opposite of specific, as in your question could be answered many different ways, most of witch your not looking for.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  5. #5
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Indeed. For a site search, would you want it to search through the files of your website (in each directory), or using a predefined list in a MySQL database or text file. If the latter, you may want to check out this site:

    http://www.cj-design.com/products/fr...jwebsitesearch

    Hope this helps
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  6. #6
    Join Date
    Feb 2007
    Posts
    601
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your post but i like to understand my things myself then to have software do it for me .

    But would i have to use MySQL for the job ? Because i have no idea what so ever on how to use it ...

  7. #7
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Well, the link I posted above uses text files for the search. So, you don't have to use MySQL. Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  8. #8
    Join Date
    Feb 2007
    Posts
    601
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks again for your post ,

    1) Is using text files and MySQL basically the same or does any one of them have a certain advantage over the other ?

    2) And can you please tell me tell me how to increase a value of a number inside of a text file ?

    Thanks for your time !!

  9. #9
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by pcbrainbuster View Post
    Is using text files and MySQL basically the same or does any one of them have a certain advantage over the other ?
    MySQL is a lot more secure than using text files. Also, with text files on a *nix machine you would have to worry about file permissions so that it is writable from the php script as compared to using MySQL.

    can you please tell me tell me how to increase a value of a number inside of a text file ?
    Depending on how your script reads the file, you should be able to use the variable (that is assigned when you you read the file with the script), then simply increment that by using:

    Code:
    $var = $var++;
    or

    Code:
    $var = $var+1;
    Then simply write the new variable back in the file.

    Hope this helps.
    Last edited by thetestingsite; 03-16-2007 at 11:55 PM.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Remember to end those with semicolons (;).
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •