Registry Mirror
搜索
Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
master
Breadcrumbs
webinterface
/
set.php
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
30 lines (22 loc) · 773 Bytes
master
Breadcrumbs
webinterface
/
set.php
Copy path
Top
File metadata and controls
Code
Blame
30 lines (22 loc) · 773 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
error_reporting(E_ERROR);
require_once('include/mysqli.php');
$db = new MySQL('localhost', 'clickndrink', 'buuusn', 'clickndrink');
// var_dump($_POST);
if($_POST['s']!=null)
{
// $ingredients = $db->GetData($q);
$q = 'UPDATE c_has_i SET amount=? WHERE c_id=? AND i_id=?';
foreach($_POST['ing'] as $ing)
{
// $tmp = array((integer)$ing['amount'], (integer)$_POST['id'], (integer)$ing['id']);
// var_dump($tmp);
// $db->PushData($q, 'iii',$tmp);
$command = $db->mysql->prepare($q)
or die('Konnte MySQL-Befehl nicht ausführen!<br /><br /><hr />Fehler: ' . $this->mysql->error);
$command->bind_param('iii',$ing['amount'], $_POST['id'], $ing['id']);
$command->execute();
}
// echo json_encode($data);
// var_dump($data);
}
You can’t perform that action at this time.