Código PHP:
<?php
$v24=$_POST['nombre'];
$base="ejido";
$tabla="ecocio";
$c=mysql_connect("localhost","root","") or die (mysql_error());
mysql_select_db($base,$c) or die (mysql_error());
$_pagi_sql = "SELECT foto, nombre, telefono, direccion, zona, web, correo FROM $tabla WHERE nombre LIKE '%$v24%' and categoria = 'empresas'";
$_pagi_cuantos = 4;
$_pagi_nav_estilo ='men';
include("paginator.inc.php");
echo "<br><img src='../logo/separa.png'>";
echo "<table align=center border='0' width='100%'>";
while($row = mysql_fetch_array($_pagi_result)){
echo "<tr>";
echo "<td rowspan='2'><img src='../logo/",$row['foto'],"' width='100px' heigh='100px' border='0'></td>";
echo "<td><font size='-1'>Empresa:</font><br><b>",$row['nombre'],"</b></td>";
echo "<td><font size='-1'>Teléfono:</font><br><b>",$row['telefono'],"</b></td>";
echo "<td><font size='-1'>E-mail:</font><br><b><a href='mailto:",$row['correo'],"' target='_blank'><font color='gray'>",$row['correo'],"</font></a></b></td>";
echo "</tr>";
echo "<tr>";
echo "<td><font size='-1'>Dirección:</font><br><b>",$row['direccion'],"</b></td>";
echo "<td><font size='-1'>Zona:</font><br><b>",$row['zona'],"</b></td>";
echo "<td><font size='-1'>Web:</font><br><b><a class='men' href='",$row['web'],"' target='_blank'>",$row['web'],"</a></b></td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan='4'><img src='../logo/separa.png'></td>";
echo "</tr>";
}
echo "</table>";
echo "<font size='-2' color='gray'>".$_pagi_navegacion."</font>";
mysql_close();
?>