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
b001a9c3
Commit
b001a9c3
authored
Oct 25, 2020
by
Faris Rizki Ekananda
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buy chocolate pdo
parent
5ea09986
Pipeline
#28539
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/buy_chocolate.php
src/buy_chocolate.php
+1
-0
No files found.
src/buy_chocolate.php
View file @
b001a9c3
...
...
@@ -34,6 +34,7 @@ if($_SERVER["REQUEST_METHOD"] === "POST"){
$time
=
date
(
"Y-m-d H:i:s"
);
$sql
=
"INSERT transactions VALUES (:username, :chocolate_id, :amount, :totalprice, :address, :time)"
;
$pdo
=
$connect_db
();
$stmt
=
$pdo
->
prepare
(
$sql
);
$stmt
->
bindParams
(
':username'
,
$username
);
...
...
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