Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Marc Cavada mocavada

🎯
Focusing
View GitHub Profile
@mocavada
mocavada / index.php
Last active Jan 3, 2018
Online Store
View index.php
<?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">
View index.html
<?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;
You can’t perform that action at this time.