Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

13511001 - Thea Olivia #93

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/ask.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<html>
<body>
<form action="backend.php" method="post" />

<h1>Simple StackExchange</h1>
<p>What's your question?</p>
<p>
<input type="text" name="nama">
</p>
<p>
<input type="text" name="email">
</p>
<p>
<input type="text" name="topic">
</p>
<p>
<input type="text" name="content">
</p>
<a href>
</form>
</body>
</html>
26 changes: 26 additions & 0 deletions src/backend.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<body>

<?php
header("Content-type:application/pdf");
$link = mysqli_connect("127.0.0.1","my_user","my_password", "my_db" );

if (!$link){
echo "Error: unable to connect to database";
exit;
}

mysqli_close($link);

function display(){
// memilih semua child dari parent

if ($ParentCategoryID == ''){
$Result = mysql_query('SELECT * FROM categories');
}
}
?>

</body>
</html>
25 changes: 25 additions & 0 deletions src/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<html><form action="backend.php" method="post" />

<h1>Simple StackExchange</h1>
<input type="text" name="keyword">
<a href="search">Search</a>
</form>



<body>
<p>Cannot find what you are looking for?
<a href="file:///Users/theaolivia/GitHub/IF3110-2015-T1/src/ask.html">
Ask here!
</a>
</p>

<p1>
Recently Asked Questions
</p1>

<!-- UPVOTE -->

<!-- DOWNVOTE -->
</body>
</html>