This entry was posted
on Thursday, July 29th, 2010 at 7:00 am and is filed under search engine optimization.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
19 Responses to “PHP Tutorials: Create a Search Engine (Part 4)”
i’m getting this can u help
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\Dreamers Search\search.php on line 40
no Results Found.
FOR THE ONES WHO HAVE BEEN ONE HOUR TRYING TO FIND OUT WICH IS THE RARE SYMBOL VERY SIMILAR TO AN 8. WELL, THATS THE PORCIENT SYMBOL. (%) THIS TUTORIAL IS AWEASOME, BUT IT NEEDS MORE EXPLANATION. I hope this helps to that guys who have been stuck in that part.
@h4r00n, i also had that problem but i came up with this code:
(Replace the whole foreach with this)
$search_each = 0;
while ($search_each < count($search_exploded)) {
if ($search_each == 0) {
$construct = "keywords LIKE '%" . $search_each . "%'";
} else {
$construct .= " AND keywords LIKE '%" . $search_each . "%'";
}
$search_each++;
}
Subscribe if helped!!!
May 11th, 2009 at 1:14 pm
Great tutorial Alex!
Thanks a lot!
June 5th, 2009 at 5:17 pm
I have created an ADD-ON to this script which allows users to add their own search terms. Please message me for the link!
June 10th, 2009 at 11:16 pm
Awesome tutorial. Thanks!
July 5th, 2009 at 12:05 am
The best php tutorial !!
August 4th, 2009 at 3:46 pm
i’m getting this can u help
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\Dreamers Search\search.php on line 40
no Results Found.
August 24th, 2009 at 2:59 pm
I keep getting a parse error on the line with the following coding: $x++;
What am I doing wrong?
September 26th, 2009 at 10:26 am
same here
September 28th, 2009 at 7:53 pm
can you just publicly post it here for us all? Thanks too!
September 29th, 2009 at 9:50 pm
I am so lost. I need this for my site so I’ll figure it out.
October 10th, 2009 at 11:14 pm
THANKKKK YOU!!!!!
November 16th, 2009 at 6:24 pm
Can you send me thjr addo on link please
November 25th, 2009 at 5:53 am
Fail and what sucks is that no help is given, very last buit I add the ‘ just like you but does not fix it and no one helps
January 22nd, 2010 at 6:32 pm
i have been following your tuts since ever , your awesome but is there a way you can paginated the search engine results?
January 25th, 2010 at 5:51 pm
same here… did u get that working?
February 10th, 2010 at 7:29 pm
noo D: its nto on my ocmputer anymore casue it was illageing singed as microsoft so my dad thoguth it had a virus and delete it
April 16th, 2010 at 3:35 pm
omg how i can do it , it is on the 0:42 , like 8
April 16th, 2010 at 4:07 pm
sorry that is %
thx for nice tutorial
June 24th, 2010 at 5:21 pm
FOR THE ONES WHO HAVE BEEN ONE HOUR TRYING TO FIND OUT WICH IS THE RARE SYMBOL VERY SIMILAR TO AN 8. WELL, THATS THE PORCIENT SYMBOL. (%) THIS TUTORIAL IS AWEASOME, BUT IT NEEDS MORE EXPLANATION. I hope this helps to that guys who have been stuck in that part.
July 7th, 2010 at 9:12 am
@h4r00n, i also had that problem but i came up with this code:
(Replace the whole foreach with this)
$search_each = 0;
while ($search_each < count($search_exploded)) {
if ($search_each == 0) {
$construct = "keywords LIKE '%" . $search_each . "%'";
} else {
$construct .= " AND keywords LIKE '%" . $search_each . "%'";
}
$search_each++;
}
Subscribe if helped!!!