commit c80db110d282d1118871f2827a65cd849b71875f Author: Claudia Cristovani Date: Mon Nov 17 13:43:00 2025 +0700 initial commit diff --git a/koneksi.php b/koneksi.php new file mode 100644 index 0000000..33b3d61 --- /dev/null +++ b/koneksi.php @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/login.php b/login.php new file mode 100644 index 0000000..4832e8c --- /dev/null +++ b/login.php @@ -0,0 +1,45 @@ +";//kalo di file yang sama + echo "lastname:".$row['lastname']."
"; + } + else echo "Username/password salah"; +} +?> + + + +
+ Username:
+ Password:
+ +
+ + \ No newline at end of file diff --git a/week13.php b/week13.php new file mode 100644 index 0000000..aef7330 --- /dev/null +++ b/week13.php @@ -0,0 +1,60 @@ +";} + else if ($umur>60) + echo "Tidak perlu buat KTP
"; + else echo "Sudah boleh buat KTP
"; + if (isset($_POST['n'])) + $n = $_POST['n']; + else $n=0; + //cetak segitiga + for($i=1;$i<=$n;$i++) + { + for ($j=1;$j<=$i;$j++) + { + echo "*"; + } + echo("
"); + }*/ + if (isset($_POST['username'])) + $username = $_POST['username']; + else $username=''; + if (isset($_POST['firstname'])) + $firstname = $_POST['firstname']; + else $firstname=''; + if (isset($_POST['lastname'])) + $lastname = $_POST['lastname']; + else $lastname=''; + if (isset($_POST['password'])) + $password = md5($_POST['password']); + else $password=''; + + //insert data ke table user_error + if ($username!='' || $firstname='' || $lastname='' || $password='') + { + $sql ="insert into user(username, firstname, lastname, password) values('$username', '$firstname', '$lastname','$password')"; + if (mysqli_query($conn,$sql)){ + echo "insert berhasil";} + else echo "error:",mysqli_error($conn); + } + + +?> + + + +
+ Username:
+ Firstname:
+ Lastname:
+ Password:
+ + +
+ + \ No newline at end of file diff --git a/weektigabelas.php b/weektigabelas.php new file mode 100644 index 0000000..c62019e --- /dev/null +++ b/weektigabelas.php @@ -0,0 +1,82 @@ + + + + + + + + + +
+
".$d['NAMA_BARANG']."
"; + echo ""; + echo "
".$d['HARGA_JUAL']."
"; + echo " +  "; + echo "
"; + } + ?> + +
A a
+
+
a
+
a
+
+ +
ayam
+ + + + +