Código PHP:
<form name="form1" method="post" action="">
<div class="input-prepend">
<span class="add-on"><i class="icon-search"></i></span>
<input name="bus" type="text" placeholder="Buscar" class="input-xlarge" autocomplete="off">
</div>
</form>
<?php
if(empty($_POST['bus'])){
$sql="SELECT * FROM depen_internas ORDER BY id ASC LIMIT $inicio, $maximo";
$rs = mysql_query($sql) or die (mysql_error() . "- Query -" . $sql);;
}else{
$bus=($_POST['bus']);
$sql = "SELECT * FROM depen_internas WHERE cod_dep='$bus%' or siglas LIKE '$bus%' or dependencia LIKE '$bus%' ORDER BY cod_dep ASC LIMIT $inicio, $maximo";
$rs = mysql_query($sql) or die (mysql_error() . "- Query -" . $sql);;
}
while ($dato = mysql_fetch_array($rs)) {
?>
Código PHP:
include("config/conectar.php");
require_once('login/comprobar.php');
include_once('class/class_dep_internas.php');
require_once("index.php");
Código PHP:
<script src="js/jquery-2.1.4.js"></script>
<script src="responsive/js/bootstrap-transition.js"></script>
<script src="responsive/js/bootstrap-alert.js"></script>
<script src="responsive/js/bootstrap-modal.js"></script>
<script src="responsive/js/bootstrap-dropdown.js"></script>
<script src="responsive/js/bootstrap-scrollspy.js"></script>
<script src="responsive/js/bootstrap-tab.js"></script>
<script src="responsive/js/bootstrap-tooltip.js"></script>
<script src="responsive/js/bootstrap-popover.js"></script>
<script src="responsive/js/bootstrap-button.js"></script>
<script src="responsive/js/bootstrap-collapse.js"></script>
<script src="responsive/js/bootstrap-carousel.js"></script>
<script src="responsive/js/bootstrap-typeahead.js"></script>
<script src="responsive/js/bootstrap-affix.js"></script>
Gracias y espero me puedar dar la ayuda.