Nothing seems to work
I tried the above and I get a parse error with the line :-
$query.="'%$datum[value]%' AND Description LIKE ";
so I created a variable using the code
so it looked like this :-
$pieces = explode(" ", $Description);
$query="LIKE ";
while ($datum=each($pieces))
{
$query.="'%$datum[value]%' AND Description LIKE ";
}
// strip off the last 'AND'
$query=substr($query,0,-21);
this returned when printed :-
LIKE '%water%' AND Description LIKE '%pump%'
great now all I had to do was :-
$result = mysql_query ("SELECT * FROM oldparts
WHERE Partno LIKE '%$Partno%'
AND Description '$query' // should equal LIKE '%water%' AND Description LIKE '%pump%
AND ManPart LIKE '%$Manpart%'
AND Franchise LIKE '%$Franchise%'
this in theory shoud've worked but I get a :-
Warning: 0 is not a MySQL result index in c:localhostsearchform.php3 on line 48
I've tried allsorts help ?