Hi djjozsi.
Thanks for the complete example you gave me. I will try it.
here is the code that I have modified from an earlier respond to this thread. however, there is an error at the last line which do not contains any code. Could you please have a look at my code?
Thanks a lot.
<?php
$con = mysql_connect("localhost","root","rootroot");
mysql_select_db("permis");
// Get the search variable from URL
$searchstring = $_GET['general'] ;
//get all the tables from the database test
$q = "show tables";
$r = mysql_query($q);
$searchresult = array();
while($row = mysql_fetch_array($r)) {
$table = $row[0]; // get the tablename
$searchtables = "select * from ".$table." where ".$column." like '%".$searchstring."%'"; //search the table column for the search string
$result = mysql_query($searchtables);
while($row = mysql_fetch_array($result)) {
$searchresult = $row['.$column.'];
}
// displayresult echo $searchtables;
echo $searchresult ;
?>