Bueno pues seria algo haci
ubica la parte donde tienes el
if($query)
Código PHP:
Ver originalif($query) { // BUSCA ESTA PARTE EN TU CODIGO
// While there are results loop through them - fetching an Object (i like PHP5 btw!).
while ($result = $query ->fetch_object()) {
// Format the results, im using <li> for the list, you can change it.
// The onClick function fills the textbox with the result.
// YOU MUST CHANGE: $result->value to $result->your_column
// AutoFill Search Field:
echo '<li><a href="search.php?Search='.$result->part.'">'.$result->part.'</a></li>';
}
}else{
echo "<script>alert('No encontrado, por favor contactanos');</script>";
}
} else {
echo 'ERROR: There was a problem with the query.';
}