implemented class method for login, register, update, delete and implemented readDatabase functionality to game.js. Write funtionality is in preogress
This commit is contained in:
parent
fbb52f76c0
commit
03e5591e0a
13 changed files with 145 additions and 83 deletions
8
controllers/updateData.php
Normal file
8
controllers/updateData.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
$username = 'MatheApp';
|
||||
$password = 'password';
|
||||
$config = require('config.php');
|
||||
$db = new Database($config['database'], $username, $password);
|
||||
$data = json_decode(file_get_contents("php://input"), true);
|
||||
dd($data);
|
||||
$db->update($data);
|
||||
Loading…
Add table
Add a link
Reference in a new issue