Well as most of us are I am new to php and am a little over my head and have created a search function that finds ("select * from portfolios,students where students.id=portfolios.id") I understand this part and I understand the $mode. What I do not understand is what: like '%" . implode("%' $Mode title like '%",$words) . " %'",$db); is doing? What does "%' stand for?
$Domain = 1;
if ($SearchType=="Keyword") {
$words = split(" ", $keywords);
if ($Mode=="") {$Mode="OR";}
if ($Domain=="title") {
$result = mysql_query("select * from portfolios,students where students.id=portfolios.id like '%" . implode("%' $Mode title like '%",$words) . " %'",$db);
} else {
$result = mysql_query("select * from portfolios,students where students.id=portfolios.id like '%" . implode(" %' $Mode description like '%",$words) . " %' OR title like '%" . implode(" %' $Mode title like '%",$words) . " %'",$db);