I am trying to send the request to API with the following code
<?php
require 'connect.php';
$posts = mysqli_query($connect, query:"SELECT * FROM `api`");
print_r($posts);
?>
but it throws me
Parse error: syntax error, unexpected ':', expecting ')' in C:\xampp\htdocs\API\index.php on line 3