Skip to content

Instantly share code, notes, and snippets.

View ohmiler's full-sized avatar
💭
Our success is in doing, not in accomplishing.

miler ohmiler

💭
Our success is in doing, not in accomplishing.
View GitHub Profile
html,
body {
height: 100%;
}
.form-signin {
max-width: 330px;
padding: 1rem;
}
@ohmiler
ohmiler / index.php
Last active February 28, 2024 03:11
ajax check username & email without submit form
<?php include('process.php'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register</title>
<link rel="stylesheet" href="style.css">
</head>
@ohmiler
ohmiler / mongodb_cheat_sheet.md
Created September 10, 2019 11:57 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@ohmiler
ohmiler / checklogin.php
Last active June 28, 2024 01:13
PHP Simple Login
<?php
function check_login()
{
if(strlen($_SESSION['login'])==0)
{
$host=$_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra="index.php";
$_SESSION["login"]="";
header("Location: http://$host$uri/$extra");