mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-10-19 04:53:51 +02:00
✨ Introducing API feature (get these by author name).
This commit is contained in:
1 parent
9774eb87f9
commit
241c411a87
2 files changed
+32
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
require_once("class/dump.php");
|
||||
|
||||
$author_name = $_GET['author'];
|
||||
|
||||
$these_array = dump::getTheseByAuthor($author_name);
|
||||
|
||||
$json = json_encode($these_array, JSON_PRETTY_PRINT);
|
||||
|
||||
echo '<pre>';
|
||||
var_dump($json);
|
||||
echo '</pre>';
|
||||
Reference in new issue
Block a user