problems exporting

Questionsproblems exporting
josep asked 9 years ago

I have a PHPGRID whose data is loaded from an array

I want to export to CSV or Excel 7 for this use

$grid["export"] = array("format"=>"csv", "filename"=>"fichero_averias");

"autofilter" => true,
"search" => "advance",
"showhidecolumns" => true,
"refresh" => false

) ;

but does not export any data, just an html header


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" ""&gt;
<html lang="es">

what can be due?


2 Answers
josep answered 9 years ago

The header of the html was a blip.
The message I get is

Please specify tablename or select command

and opens a blank CSV file

Abu Ghufran answered 9 years ago

Make sure you set table to your array data.

$g->table = $arr;


Your Answer

10 + 1 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?