Skip to content

Instantly share code, notes, and snippets.

Marc Cavada mocavada

Block or report user

Report or block mocavada

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.