Hi again guys!
Thanks for all your replies. I've played around be bit more with the code and pretty much moved away from the WHEN MATCH() AGAINST('') tag since I never got anything usefull out of it.
However, I'm half way there now I think, since the new code now is able to find matches and render at least the table name and all the fields in the hits.
There is no valuable information in there yet, as I'm trying to get this working before I start using it. As you can see I still need a way to get the row records displayed of the hit rows.
The code looks like this so far:
$keyword = $_POST["keyword"];
if($keyword != NULL)
{
$tbl = mysql_list_tables($jaxeed, $conn);
for($tbsr=0; $tbsr < mysql_num_rows($tbl); $tbsr++)
{
$tablesrc = mysql_tablename($tbl, $tbsr);
$fldnm = mysql_list_fields($jaxeed, $tablesrc, $conn);
$clmn = mysql_num_fields($fldnm);
for ($cl = 0; $cl < $clmn; $cl++)
{
$fieldsrc = mysql_field_name($fldnm, $cl);
$searchcode = "SELECT * FROM $tablesrc WHERE $fieldsrc LIKE '$keyword'";
$search = mysql_query($searchcode, $conn) or die(mysql_error());
#Dealing with hits:
if(mysql_fetch_assoc($search) == TRUE)
{
$hittable = $tablesrc;
$hitfield = $fieldsrc;
$allfields = mysql_list_fields($jaxeed, $hittable, $conn);
$allcolumns = mysql_num_fields($allfields);
$colspan = $allcolumns + 2;
$showfields .="<td bordercolor=\"#000080\"><div align=center class=\"monitor\" colspan=\"$colspan\"> $hittable </td></tr><tr>";
for ($af = 0; $af < $allcolumns; $af++)
{
$showfields .= "<td bgcolor=\"#00C000\"><div align=center class=\"mon2\">" .mysql_field_name($allfields, $af) . ": </div></td>"; $stopper++;
#where the tag has to go in for getting the records of each column
if($stopper == $allcolumns)
{
$showfields .= "</tr></table><br><table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" bordercolor=\"#00C000\"><tr>"; $stopper = 0;
}
}
#simple output
$hitlist.= " Table: $tablesrc Field: $fieldsrc |";
}
}
}
}
I've tried putting in the below tag to get the records, but the code went balistic as soon as I did this - all sorts of errors.
while($conn = mysql_fetch_array($searchcode))
{
foreach ($conn as $hit_info) $searchresult .= "<td><div class=\"monitor\">$hit_info</div></td>"; $br++; if($br >= $allcolumns) {$searchresult .= "</tr><tr>"; $br = 0;}
}
So, dear friends, do you have any better ideas of what tag I should try? Also, when it finds more then one hit in one table it displays the table twice, which isnt really necessary (though no big issue really).
Thanks for all your support so far. When I'm done with this manager thingy I'll make it available, hopefully making someones MySQL managements easier.