Hello Abu,
$sqltxt = "SELECT …."
$g-select_command = $sqltxt;
$g-table = $dbtabela;
$g-set_columns($cols);
$out = $g-render("list1");
How do I know if recordset empty (ie no records returned) because then I would not go to the command:
echo $out
Regards,
Davor
3 Answers
Hello,
It shows in lower-right side of grid, about how many records are returned.
If there are no records, it shows that message.
However, this is no very presentable, so i've changed it's position at center of grid.
I'm emailing you update, kindly override.
Regards,
Hello Abu,
Ok, thanks for the update (very nice) but I thought that in the case that there are no returned records I would not at all writing the variable $out (no line code echo $out).
Regards,
Davor
Your Answer