Skip to content

Instantly share code, notes, and snippets.

View wahyupambudi's full-sized avatar
👨‍💻
Always Learn

wahyupambudi wahyupambudi

👨‍💻
Always Learn
View GitHub Profile
@wahyupambudi
wahyupambudi / web
Created March 9, 2019 23:29
exercise website
<!DOCTYPE html>
<html>
<head>
<title>Perencanaan Website</title>
</head>
<body>
<h1>Perencanaan Website</h1>
<div>
<fieldset>
<legend>
@wahyupambudi
wahyupambudi / tag1.html
Last active March 10, 2019 01:38
Material Blogger
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Tag Awonapa</title>
<link rel="stylesheet" href="">
</head>
<body>
<div>
@wahyupambudi
wahyupambudi / paragraph.html
Created March 10, 2019 01:50
Material Blogger
<p>
Today I learn about HTML. It's a basic markup that structure a website.
And To be I need Web Developer Full Stack
</p>
@wahyupambudi
wahyupambudi / index.php
Last active July 24, 2021 07:43
Home ( Web Blog Bootstrap, PHP, MySQL)
<?php
require 'func.php'
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
@wahyupambudi
wahyupambudi / func.php
Last active July 24, 2021 08:12
Function ( Web Blog Bootstrap, PHP, MySQL)
<?php
$con = mysqli_connect("localhost", "root", "", "db_artikel");
if(!$con) {
die("Koneksi Gagal : ". mysqli_connect_error());
};
?>
@wahyupambudi
wahyupambudi / header.php
Last active July 24, 2021 08:08
Header ( Web Blog Bootstrap, PHP, MySQL)
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Header</title>
</head>
<body>
<div class="container header text-center text-light">
@wahyupambudi
wahyupambudi / detail.php
Created July 24, 2021 08:13
Detail Artikel ( Web Blog Bootstrap, PHP, MySQL)
<?php
require 'func.php'
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
@wahyupambudi
wahyupambudi / admin.php
Created July 24, 2021 08:17
Admin Page ( Web Blog Bootstrap, PHP, MySQL)
<?php require '../func.php' ?>
<?php
if(isset($_GET['delete'])) {
$id = $_GET['delete'];
$query = mysqli_query($con, "DELETE FROM t_artikel WHERE id='$id'");
header("Location: admin.php");
}
?>
<html lang="en">
<head>
@wahyupambudi
wahyupambudi / add.php
Created July 24, 2021 08:20
Add Page ( Web Blog Bootstrap, PHP, MySQL)
<div class="container">
<div class="" style="padding: 10px">
<!-- <h3 class="text-center text-dark">Add Article</h3> -->
<a href="admin.php"><button class="btn-danger">Close</button></a>
<h4 align="center" class="btn-info">Add Article Page</h4>
<?php
function input($data)
{
$data = trim($data);