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![]()
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.
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
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).
Vague is the opposite of specific, as in your question could be answered many different ways, most of witch your not looking for.
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
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...
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
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 !!
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.
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:can you please tell me tell me how to increase a value of a number inside of a text file ?
orCode:$var = $var++;
Then simply write the new variable back in the file.Code:$var = $var+1;
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
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