tengi un fomulario php, tengo que hacer una busqueda a la bd y presentar la infromacion en un flexigrid, pero no me trae nada, si hago la consulta de todo sin where si me presenta la info, ero si le pongo where ya no trae nada.
Me comentaron que lo podia resolver con $_session, pero no encuentro el error
les pongo el codigo:
-----formulario solo donde esta el textbox y el boton-----
div id="contenido">
<?php
session_start();
echo $_POST['indicador'];
$_SESSION['parametro'] = $_POST['indicador'];
if(isset($_POST['buscar'])){
include "datagrid.php";
}
?>
</div>
------php consulta-------
$sql = "SELECT ID, RAMO, UR, URD, PROG, INDICADOR, EJE, OBJ_GRAL, OBJ_PART, META, PROG_SEC, GPO_FUN, FUNC, SUBFUNC, INTERP_RES, BENEF, UN_MED, ENE, FEB, MAR, ABR, MAY, JUN, JUL, AGO, SEP, OCT, NOV, DIC, ACUM, AVAN FROM datos_grales WHERE INDICADOR = '{$_SESSION['parametro']}' $sort $limit";
D
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)