Filippo Bertilotti
2024-07-22 0991a9fb42afabd45d2b7504b84d6484b241c35d
commit | author | age
42e9ce 1 <?php
FB 2 namespace App\Vola\Services\FakeSSODatabase;
3
4 use Exception;
5 use Illuminate\Support\Facades\DB;
6
7 class FakeSSODatabaseHandler {
8     
9     /*public function insertDataIntoTable(array $data) {
10         //usare insert() per inserire il valore nella tabella giusta
11     }
12
13     private function insert($value ,string $field, string $table) {
14         
15     }*/
16
17     public function testInsert() {
18         try{
19             DB::insert("insert into fakesso_vodafoneusers (Name, Surname) values (?, ?)", ["CIAO", "CIAONE"]);
20         }catch(Exception $e) {
21             echo $e;
22         }
23     }
24
25
26 }