Show CSV in Dadatables with php
Show CSV in Dadatables with php
zerano
Posts: 2Questions: 1Answers: 0
Hi,
I've a CSV table, which I want to print as datatable. But the system does not recognize the header (as manu header. It shows only the content)... I tried much different ways with the <thead> tag, but it does not work... Can anyone help?
```php
<?php
$datei = 'example.csv';
echo '
'.$data[$x].' | ' . "\n"; else echo ''.$data[$x].' | ' . "\n"; } $zeile++; echo '
---|
';
<?php > ``` ?>This discussion has been closed.
Answers
Ok, I resolved it:
```php
<?php
$datei = 'example.csv';
echo '
';
<?php > ``` ?>