hi, i want to make a search engine somewhat like google, google seperate the string on the basis of spaces and search all the words in the string...
Problem is that i can search the whole string to database, bt how could searching being done for every single words...
Any reply will appreciated
Thanx
array with mysql!!
Moderator: General Moderators
- Grizzzzzzzzzz
- Forum Contributor
- Posts: 125
- Joined: Wed Sep 02, 2009 8:51 am
Re: array with mysql!!
split the string into individual parts...
simple example:
$part1 will now contain "Hello"
$part2 will contain "World!"
simple example:
Code: Select all
<?php
$searchString = "Hello World!"
list($part1, $part2) = split(' ', $searchString);
?>
$part2 will contain "World!"
Re: array with mysql!!
hey thanx for rply...
what will happen if i inputed a string with uncounted words....
what will happen if i inputed a string with uncounted words....