Skip to content

Instantly share code, notes, and snippets.

View AriffAzmi's full-sized avatar
🏠
Working from home

AriffAzmi AriffAzmi

🏠
Working from home
View GitHub Profile
<?php
require_once 'dbconfig.php';
if (isset($_POST['btn-login'])) {
$user = $_POST['username'];
$password = $_POST['password'];
if($user == '') {
$errmsg_arr[] = 'You must enter your Username';
$errflag = true;
<!DOCTYPE html>
<html>
<head>
<title>Contact</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<?php
include 'config.php';
if (!isset($_SESSION['id'])) {
header("Location: login.php");
}
if (isset($_POST['search'])) {
<?php
$url = "http://admin.ariffazmi.my";
/**
*
*/
class NotUrlException extends Exception
<?php
include 'config.php';
$class_id = $mysqli->real_escape_string($_GET['id']);
$send_mail = "SELECT * FROM book WHERE id = '" . $class_id . "'";
$r_mail = $mysqli->query($send_mail);
while ($row = $r_mail->fetch_assoc()) {
<?php
include 'config.php';
if (isset($_POST['update']) && $_FILES['logo_name']) {
$menu_id = $mysqli->real_escape_string($_POST['menu_id']);
$menu_name = $mysqli->real_escape_string($_POST['menu_name']);
$menu_price = $mysqli->real_escape_string($_POST['menu_price']);
$menu_description = $mysqli->real_escape_string($_POST['menu_description']);
<?php
include 'config.php';
include 'owner.php';
if (!isset($_SESSION['restaurant_id'])) {
header("Location: index.php");
}
$menu_id = $mysqli->real_escape_string($_GET['id']);
<?php
include 'config.php';
if (isset($_SERVER['HTTP_ORIGIN'])) {
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Max-Age: 86400'); // cache for 1 day
}
package incometax;
import java.util.Scanner;
public class IncomeTax
{
public static void main(String[] args)
{
String name;
double salary, result;
package incometax;
import java.util.Scanner;
/**
*
* @author ariff
*/
public class IncomeTax {