Skip to content

Instantly share code, notes, and snippets.

View mocavada's full-sized avatar
🎯
Focusing

MO Kento mocavada

🎯
Focusing
View GitHub Profile
@mocavada
mocavada / index.php
Last active January 3, 2018 20:19
Online Store
<?php
require( 'includes/config.inc.php' );
$query = "SELECT * FROM Products";
$result = mysqli_query( $db, $query ) or die(mysqli_error($db) . '<br />' . $query );
?>
<!doctype html>
<html lang="en">
@mocavada
mocavada / index.html
Created December 18, 2017 17:32
MySQL
<?php
// load configuration settings
require( 'includes/config.inc.php' );
// load helpful functions into memory
require( 'includes/functions.inc.php' );
// check login status
$logged_in = false;