Export to Excel serverside not working

Dear sirs

I try to export my data to excel directly out of my database but happens nothing.
PHP code:

<?php
   require('../../Connector/grid_config.php');
   require('../../Connector/grid_connector.php');
   require('../../Connector/convert.php');
   include ('../SQL/config.php');
   
   $res  = mysql_connect($mysql_host, $mysql_user, $mysql_pasw);
   mysql_select_db($mysql_db);

   $convert = new ConvertService("../../Excel/generate.php");
   $convert->excel("data.xls",true);
   
   $grid = new GridConnector($res, "MySQL");
   $grid->set_config(new GridConfiguration());
   $grid->render_table("sk_mitarbeiter","id","ma_vorname, ma_nachname, ma_kuerzel, ma_firma, ma_abt, ma_gruppe, ma_team, ma_job, ma_extra, ma_email, ma_telefon, ma_bday, ma_strasse, ma_plz, ma_ort");   
?> 

Thank you in advance

I forgot something or i did anything wrong?

Thank you in advance

Hi,
here is an example of using direct export to PDF, export to Excel is the same.
direct_export.zip (1.02 MB)