Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Tugas Besar 1 - 2020
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IF3110-2020-01-K03-02
Tugas Besar 1 - 2020
Commits
d4d4541e
Commit
d4d4541e
authored
Oct 25, 2020
by
Faris Rizki Ekananda
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
params fix
parent
b001a9c3
Pipeline
#28544
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/buy_chocolate.php
src/buy_chocolate.php
+6
-6
No files found.
src/buy_chocolate.php
View file @
d4d4541e
...
...
@@ -37,12 +37,12 @@ if($_SERVER["REQUEST_METHOD"] === "POST"){
$pdo
=
$connect_db
();
$stmt
=
$pdo
->
prepare
(
$sql
);
$stmt
->
bindParam
s
(
':username'
,
$username
);
$stmt
->
bindParam
s
(
':chocolate_id'
,
$chocolate_id
);
$stmt
->
bindParam
s
(
':amount'
,
$amount
);
$stmt
->
bindParam
s
(
':totalprice'
,
$totalprice
);
$stmt
->
bindParam
s
(
':address'
,
$address
);
$stmt
->
bindParam
s
(
':time'
,
$time
);
$stmt
->
bindParam
(
':username'
,
$username
);
$stmt
->
bindParam
(
':chocolate_id'
,
$chocolate_id
);
$stmt
->
bindParam
(
':amount'
,
$amount
);
$stmt
->
bindParam
(
':totalprice'
,
$totalprice
);
$stmt
->
bindParam
(
':address'
,
$address
);
$stmt
->
bindParam
(
':time'
,
$time
);
$stmt
->
execute
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment