A ver si así te ayudan
Código PHP:
Ver original<?php
include ("conec.php");
$busqueda = $_POST["Busqueda"];
if ($busqueda != "") {
$lsQryB = "select idEmpresa from (Select idEmpresa,NomEmpresa,NomContacto,ApellidosContacto ,PuestoContacto from visionaria.OracleCuliacan where NomContacto<>'' Limit 10) as Tabla where idEmpresa like '%$busqueda%' or NomContacto like '%$busqueda%'";
}
$lsQry = "Select idEmpresa,NomEmpresa,NomContacto,ApellidosContacto ,PuestoContacto from visionaria.OracleCuliacan where NomContacto<>'' Limit 10";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
div.centrado {
text-align: center;
}
div.centrado table {
margin: 0 auto;
text-align: left;
}
</style>
<script language="javascript">
function Busca()
{
document.form1.action="in.php";
document.form1.submit();
}
</script>
</head>
<body>
<div class="centrado">
<table width="732" height="149" border="0">
<tr>
<td width="55"> </td>
<td width="592" style="text-align: center">
<form id="form1" name="form1" method="post" action="#">Busqueda <input
type="text" name="Busqueda" id="Busqueda" /> <input type="button"
name="Enviar" id="Enviar" value="Buscar" onclick="Busca()" /></form>
</td>
<td width="63"> </td>
</tr>
<tr>
<td> </td>
<td style="text-align: center">
<?php
$i = 0;
if ($conteo != 0) {
$arrValores[$i] = $arrBusqueda["idEmpresa"];
$i++;
}
} else
echo "No existen Empresas";
echo "<table border=\"1\">";
echo "<tr>";
echo "<td>Id Cliente</td>";
echo "<td>Empresa</td>";
echo "<td>Nombre</td>";
echo "<td>Apellidos</td>";
echo "<td>Puesto</td>";
echo "</tr>";
for ($j = 0; $j <= $i; $j++) {
if ($arrRegistros["idEmpresa"] == $arrValores[$j]) {
echo "<tr style=\"background-color:#653\">";
$m = 1;
} else
$m = 0;
}
if ($m = 0)
echo "<tr>";
echo "<td>" . $arrRegistros["idEmpresa"] . "</td>";
echo "<td>" . $arrRegistros["NomEmpresa"] . "</td>";
echo "<td>" . $arrRegistros["NomContacto"] . "</td>";
echo "<td>" . $arrRegistros["ApellidosContacto"] . "</td>";
echo "<td>" . $arrRegistros["PuestoContacto"] . "</td>";
echo "</tr>";
}
echo "</table>";
?>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
</body>
</html>