Good, I have the following problem I want to do as a filter with sql that shows only the rows that have for example in the column job_date the value 21/02/2017 and in the column job_state the value 1 this is my code, the two are inside the table tareas_diez
public function mostrar_tarea($datos) {
$fecha = 21/02/2017;
$estado = 1;
$sql = "la consulta con las variables";
$rs = $this->consulta($sql);
$registros = "";
while ($row = mysqli_fetch_array($rs, MYSQLI_ASSOC)) {
$registros .= ' <li><a href="#">1 Lorem ipsum dolor sit amet.</a></li>';
}
if ($registros == "") {
$registros = '<tr>';
$registros .= '<td colspan="5">';
$registros .= 'No existen registros ...';
$registros .= '</td>';
$registros .= '</tr>';
}
$arr = array('registros' => $registros);
return ($arr);
}
I hope you understand and can help me