Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Search Script
Corey
post Jan 25 2005, 08:16 PM
Post #1


Super Member
*********

Group: Members
Posts: 218
Joined: 13-January 05
Member No.: 3,267



i need a simple script writen in PHP...that searches the MySQL database and finds the word searched in it...

here's an example


i search for "big"


Result:

big things happend.....

that was abig...

big sale on...


---------

so i click on one of the options and it directs me to the whole content...

i hope you know some script that could help me...


see ya;)
Go to the top of the page
 
+Quote Post
bjrn
post Jan 25 2005, 10:29 PM
Post #2


Super Member
*********

Group: Members
Posts: 378
Joined: 8-January 05
Member No.: 3,174



I'll teach you not only how to implement the search script, I'll teach you how to uncover more knowlegde than you thought possible!

Let's see. We have to get something that uses PHP and MySQL and it has to be some sort of search script. I know, lets try Google!
We go to http://www.google.com/ and type... oh, I don't know, what about 'php mysql "search script"'? Without the single quotes, but with the dubble quotes. Hmm. You know what, I'm feeling lucky, so I click on the "I'm feeling lucky" button. Wow! A solution!

Who would have thought that ten seconds using Google would have given me a solution. It's incredible!



Alternatively you could use something like phpDig, which I have no experience with, but am sure is quite advanced.
Go to the top of the page
 
+Quote Post
Corey
post Jan 25 2005, 10:41 PM
Post #3


Super Member
*********

Group: Members
Posts: 218
Joined: 13-January 05
Member No.: 3,267



mahh...nevermind....but tnx anyway;)
Go to the top of the page
 
+Quote Post
nancmu
post Jan 28 2005, 03:40 AM
Post #4


Advanced Member
*******

Group: Members
Posts: 136
Joined: 20-October 04
From: Thailand
Member No.: 1,840



TRY THIS...
$search_word = "in";
@mysql_connect($host, $user, $mysql_password);
$sql = "SELECT * FROM $table_name WHERE field_in_table LIKE '%$search_word%' ";
// LIKE, =, != you can learn in phpmyadmin when you try to search in database.
// %$search_word% the results are since, inner or win
// %$search_word the result is win rolleyes.gif
// $search_word% the result is inner laugh.gif
Go to the top of the page
 
+Quote Post
Corey
post Jan 28 2005, 10:40 AM
Post #5


Super Member
*********

Group: Members
Posts: 218
Joined: 13-January 05
Member No.: 3,267



i think i understand..tnx;)
Go to the top of the page
 
+Quote Post
cragllo
post Jan 28 2005, 11:02 AM
Post #6


Privileged Member
*********

Group: Members
Posts: 933
Joined: 24-August 04
Member No.: 892



QUOTE(Corey @ Jan 25 2005, 10:41 PM)
mahh...nevermind....but tnx anyway;)
*



Why did you say that? I did the same and came up with everything you need to know....
Go to the top of the page
 
+Quote Post
karlo
post Jan 28 2005, 12:46 PM
Post #7


Privileged Member
*********

Group: Members
Posts: 618
Joined: 30-October 04
From: Philippines
Member No.: 2,049



Try going to http://www.planetsourcecode.com

Make sure that you really learn the basics of MySQL so that it will be a little bit easy for you.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Many Php Script Sites(16)
  2. Script: Php Jukebox(4)
  3. Parse: Error Unexpected T_lnumber(4)
  4. Transfer Variables To Another Php Script(8)
  5. Watermark Your Image With Simple Php Script(35)
  6. Script That Tracks The User Status(4)
  7. Wappychat_oldskool(15)
  8. Free Auction Script(6)
  9. Wappy Buddy V1.10 - Tibia Gold Edition By Wappy & Jon Roig(3)
  10. What Kind Of Script Do You Need ?(15)
  11. Creatting A Playlist Through Php(5)
  12. Very Simple Online Now Script(4)
  13. Html Code Tester. Online Script(15)
  14. Will This Code Work(5)
  15. Php Downloads Script(4)
  1. Script Help Required: Undefined Variable(3)
  2. Script Not Working(6)
  3. Library Script(6)
  4. How Would I Go About Making A Simple "counting" Script?(3)
  5. Forum Script(3)
  6. Php Rediret Script(12)
  7. Download Script For Mp3 Files(0)
  8. How Do I Connect To Live Database With Php Script?(6)
  9. Need Help Installing Dolphin Community Script!(5)
  10. Guessing Php Script(2)
  11. How To Make A View New Post Script?(5)
  12. Php Guest Online Script(3)
  13. How To Make Php Newsletter Script(3)


 



- Lo-Fi Version Time is now: 11th October 2008 - 11:53 PM