Skip to content

Instantly share code, notes, and snippets.

View pipethedev's full-sized avatar
🎯
Focusing

Muritala David pipethedev

🎯
Focusing
View GitHub Profile
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: sql306.epizy.com
-- Generation Time: Sep 05, 2019 at 11:05 AM
-- Server version: 5.6.45-86.1
-- PHP Version: 7.2.22
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
<?php
//starting session
session_start();
//initializing message variable
$message = "";
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<?php include 'send.php' ;?>
<!DOCTYPE html>
<html>
<head>
<title>Verification</title>
<?PHP
$message = "";
//initializing connection variables
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
<?PHP
if(isset($_POST['verify'])){
$code = filter_var_array($_POST['code'], FILTER_SANITIZE_STRING);
if($_COOKIE['code'] == $code){
$result = "Successfull you will soon be redirected to your home page";
<!DOCTYPE html>
<html>
<head>
<title>Ruby On Rails Course</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
</head>
<body>
<div class="card" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
// Create a Stripe client.
var stripe = Stripe('_____YOUR STRIPE API KEY___');
// Create an instance of Elements.
var elements = stripe.elements();
// Custom styling can be passed to options when creating an Element.
// (Note that this demo uses a wider set of styles than the guide below.)
var style = {
base: {
<?php
//requires
//Stripe PHP library
require_once __DIR__ .'/vendor/autoload.php';
//Database Connectivity
require_once __DIR__. '/db.php';
//Brad Traversy Pdo library
require_once __DIR__. '/pdo_db.php';
require_once __DIR__. '/customer.php';
<?php
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'payments');