From 95e9c78d377c1ee41c70e3291f37f21d581daf19 Mon Sep 17 00:00:00 2001 From: gapradana123 <115344560+gapradana123@users.noreply.github.com> Date: Mon, 12 Dec 2022 17:32:27 +0700 Subject: [PATCH] Add files via upload --- adddata.php | 12 +++++++++ conn.php | 10 +++++++ editdata.php | 12 +++++++++ list.php | 7 +++++ validator.sql | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 116 insertions(+) create mode 100644 adddata.php create mode 100644 conn.php create mode 100644 editdata.php create mode 100644 list.php create mode 100644 validator.sql diff --git a/adddata.php b/adddata.php new file mode 100644 index 0000000..41cbfdd --- /dev/null +++ b/adddata.php @@ -0,0 +1,12 @@ +query("INSERT INTO profil (nama, email, password, wallet) VALUES ('".$nama."','".$email."','".$password."','".$wallet."')") + +?> \ No newline at end of file diff --git a/conn.php b/conn.php new file mode 100644 index 0000000..e94b9c1 --- /dev/null +++ b/conn.php @@ -0,0 +1,10 @@ +query("UPDATE profil SET nama='".$nama."', email='".$email."', password='".$password."' WHERE id=". $id); + +?> \ No newline at end of file diff --git a/list.php b/list.php new file mode 100644 index 0000000..28f5c64 --- /dev/null +++ b/list.php @@ -0,0 +1,7 @@ +