php pdo, reading
php pdo, reading
Theodorus
Posts: 7Questions: 3Answers: 0
From https://wijkvisiefraneker.nl/users/members
```
$db->query("SET NAMES utf8");
$data = $db->query("SELECT genre, first_name, number_of_people FROM members ORDER BY members_id DESC")->fetchAll(PDO::FETCH_ASSOC);
header("content-type:application/json");
echo json_encode($data);
````
to https://wijkvisiefraneker.nl/users/tmp
What Do I wrong?
This discussion has been closed.
Answers
How/where are you accessing DataTables' Javascript?
No.
You need a "script src.....etc" reference to DataTables in your HTML.
Yes I see, I have added the files and updated https://wijkvisiefraneker.nl/users/tmp
fixed.
PHP:
JS:
Hello, I want to add a linkt to the form like <a href="link">first_name</a>
How can I make thas possable ?
use the render option in columns or columnDefs https://datatables.net/reference/option/columns.render