mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-08-19 11:43:16 +02:00
✨ Introducing API feature (get these by author name).
This commit is contained in:
@@ -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