Hello everyone
you can create a pager, in this code
Answer search found nothing
Please can you help me with this
<form action="Search.php" method="post"> <input type="text" name="Words" /> <button type="submit">Search</button></p> </form> <?
$consulta = $_POST['Words'];
if ($consulta == "") {
} else {
mysql_connect($dbhost,$dbuser,$dbpass) or die(mysql_error());
mysql_select_db($dbdatabase) or die(mysql_error());
$SQL = mysql_query("SELECT * FROM People
INNER JOIN Position ON People.idCarg=Position.idCarg
INNER JOIN Vacation ON People.idVac=Vacation.idVac
WHERE
names LIKE '%$consulta%' OR
namePosition LIKE '%$consulta%' OR
nameVac LIKE '%$consulta%' 0,5");
echo " <center>Results: $consulta<br> </center>";
while($row = mysql_fetch_array($SQL)) {
$items = $row["names"];
$items = $row["namePosition"];
$items = $row["nameVac"];
?> <?="".$row["names"].""?> <?="".$row["namePosition"].""?> <?="".$row["nameVac"].""?> <br> <? } ?> <? if ($items == "") { echo "<center>No results</center>"; } else { mysql_close; } } ?>