From 7216ff3fee6c75940291a3b14055a18f36deed96 Mon Sep 17 00:00:00 2001 From: Thea Olivia Date: Wed, 14 Oct 2015 17:50:00 +0700 Subject: [PATCH 1/3] First Commit Inisiasi halaman utama (main.html) dengan backend yang berisi daftar pertanyaan yang baru ditanya (backend.php) --- src/backend.php | 18 ++++++++++++++++++ src/main.html | 17 +++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 src/backend.php create mode 100644 src/main.html diff --git a/src/backend.php b/src/backend.php new file mode 100644 index 0000000..64dcf55 --- /dev/null +++ b/src/backend.php @@ -0,0 +1,18 @@ + + + + + + + + \ No newline at end of file diff --git a/src/main.html b/src/main.html new file mode 100644 index 0000000..457188d --- /dev/null +++ b/src/main.html @@ -0,0 +1,17 @@ +
+ +

Simple StackExchange

+ +
+ +

Cannot find what you are looking for? + + Ask here! + +

+ + + + + + From ec2d10ef7950a20b00263f0ca8bb64954b196a73 Mon Sep 17 00:00:00 2001 From: Thea Olivia Date: Fri, 16 Oct 2015 06:42:11 +0700 Subject: [PATCH 2/3] editing ask.html editing ask.html --- src/ask.html | 22 ++++++++++++++++++++++ src/main.html | 14 +++++++++++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 src/ask.html diff --git a/src/ask.html b/src/ask.html new file mode 100644 index 0000000..ca2ace6 --- /dev/null +++ b/src/ask.html @@ -0,0 +1,22 @@ + + +
+ +

Simple StackExchange

+

What's your question?

+

+ +

+

+ +

+

+ +

+

+ +

+ + + + \ No newline at end of file diff --git a/src/main.html b/src/main.html index 457188d..d4a6d78 100644 --- a/src/main.html +++ b/src/main.html @@ -1,17 +1,25 @@ -
+

Simple StackExchange

+
Search
+ + +

Cannot find what you are looking for? - + Ask here!

+ + Recently Asked Questions + - + + From 96ddbddc5c47bd676fb2b204dbe423d08a60c85f Mon Sep 17 00:00:00 2001 From: Thea Olivia Date: Sat, 17 Oct 2015 02:47:27 +0700 Subject: [PATCH 3/3] HTML basic done HTML basic done --- src/backend.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/backend.php b/src/backend.php index 64dcf55..42f0108 100644 --- a/src/backend.php +++ b/src/backend.php @@ -12,6 +12,14 @@ } mysqli_close($link); + +function display(){ + // memilih semua child dari parent + + if ($ParentCategoryID == ''){ + $Result = mysql_query('SELECT * FROM categories'); + } +} ?>