Mise à jour de 'api-rest/index.php'
continuous-integration/drone/push Build is passing Details

testDockerToto
Thomas CHAZOT 2 years ago
parent 5c638a96f0
commit cf9b483e97

@ -1,4 +1,5 @@
<?php <?php
/*
$conn = new mysqli("BOB_PARTEAM-mysql",getenv("MYSQL_USER"),getenv("MYSQL_PASSWORD"),getenv("MYSQL_DATABASE")); $conn = new mysqli("BOB_PARTEAM-mysql",getenv("MYSQL_USER"),getenv("MYSQL_PASSWORD"),getenv("MYSQL_DATABASE"));
$conn->query("DROP TABLE IF EXISTS `common_absences`;"); $conn->query("DROP TABLE IF EXISTS `common_absences`;");
$conn->query("CREATE TABLE coucou (`COUCOU_ID` int(10) unsigned NOT NULL,`COUCOU_TEXT` char(10) NOT NULL);"); $conn->query("CREATE TABLE coucou (`COUCOU_ID` int(10) unsigned NOT NULL,`COUCOU_TEXT` char(10) NOT NULL);");
@ -8,12 +9,14 @@
while ($une_valeur = $res->fetch_array()) { while ($une_valeur = $res->fetch_array()) {
echo $une_valeur["COUCOU_ID"]." ".$une_valeur["COUCOU_TEXT"]; echo $une_valeur["COUCOU_ID"]." ".$une_valeur["COUCOU_TEXT"];
} }
//exit; exit;
*/
//header('Access-Control-Allow-Origin: *'); //header('Access-Control-Allow-Origin: *');
//header('Access-Control-Allow-Methods: POST,GET,DELETE,PUT'); //header('Access-Control-Allow-Methods: POST,GET,DELETE,PUT');
/// Good to know : /// Good to know :
/// All the values must be cleaned on the application side before using this API /// All the values must be cleaned on the application side before using this API
/// ///

Loading…
Cancel
Save