Show CSV in Dadatables with php
Show CSV in Dadatables with php
![zerano](https://secure.gravatar.com/avatar/79b0d4aa13802a015247500050bcae24/?default=https%3A%2F%2Fvanillicon.com%2F79b0d4aa13802a015247500050bcae24_200.png&rating=g&size=120)
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 > ``` ?>