if (isset($_POST['opc']) and isset($_POST['buscador'])) { if ($_POST['opc'] == 2 and !empty($_POST['buscador'])) { echo "checked"; } } ?> /><label> Por Nombre Completo</label> </div> </form> <form method="POST" action="index" onsubmit="return enviar_form_accion()"> <?php extract($_POST); include_once '../../system/class.php'; $objproducto = new producto(); if (isset($eliminar)) { $objproducto->eliminar($mysqli, $seleccion); } if (!empty($buscador)) { switch ($opc) { case 1: $result = $objproducto->buscadorlike($mysqli, $buscador); $result = $result->fetch_array(); if (empty($result)) { echo "No existe el producto buscado"; } else { echo "<table class='anapro'>\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t\t<td>Nombre</td>\n\t\t\t\t\t\t\t<td>Existencia</td>\n\t\t\t\t\t\t\t<td>Precio</td>\n\t\t\t\t\t\t <td><i class='fa fa-check-circle'></i></td>\n\t\t\t\t\t </tr> "; $result = $objproducto->buscadorlike($mysqli, $buscador); while ($resultado = $result->fetch_array()) { if ($resultado[5] == 1) { $unidad = "c/u"; }