3.2.0

no data found

my script returns this "no data found"

the source is

// grid object name
$name = "obj";

$sql_vistaLlamadas = "select * from llamadas";
$link = mysql_connect("localhost", "user", "pass") or die("conexion rechazada");
mysql_select_db("database", $link) or die("rechazada");
$resultado_vistaLlamadas=mysql_query($sql_vistaLlamadas);
$row_vistaLlamadas= mysql_fetch_array($resultado_vistaLlamadas);
mysql_close($link);

// add grid to the page
echo activewidgets_grid($name, $row_vistaLlamadas);
Tony
June 23,
Tony, grid accepts the resultset , not an array.

$resultado_vistaLlamadas=mysql_query($sql_vistaLlamadas);
echo activewidgets_grid($name, $resultado_vistaLlamadas);

will work


r3d
June 24,

This topic is archived.

See also:


Back to support forum