This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//header.php | |
$activePage = basename($_SERVER['PHP_SELF'], ".php"); | |
//nav.php | |
<ul> | |
<li class="<?= ($activePage == 'index') ? 'active':''; ?>"><a href="/index.php">Home</a></li> | |
<li class="<?= ($activePage == 'tutorials') ? 'active':''; ?>"><a href="/tutorials.php">Tutorials</a></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isset($_FILES['userfile'])) { | |
move_uploaded_file($_FILES['userfile']['tmp_name'], '../main-img/maps/' . $_FILES['userfile']['name'] ); | |
$att_map = 'main-img/maps/' . $_FILES['userfile']['name']; | |
} | |
<div class="form-group col-md-6"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$att_id_working = mysqli_insert_id($connection); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Welcome extends CI_Controller { | |
public function index() | |
{ | |
$this->load->view('welcome_message'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// auto increament reset | |
ALTER TABLE table_name AUTO_INCREMENT = 1; | |
SELECT country.name AS country, city.name AS city FROM country JOIN city ON country.capital_city_id = city.id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-header> | |
<ion-navbar color="secondary"> | |
<ion-title> | |
Hello Darling | |
</ion-title> | |
</ion-navbar> | |
</ion-header> | |
<ion-content padding> | |
<ion-item> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (typeof React === 'undefined') ! function(t) { | |
if ("object" == typeof exports && "undefined" != typeof module) module.exports = t(); | |
else if ("function" == typeof define && define.amd) define([], t); | |
else { | |
var e; | |
e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, e.React = t() | |
} | |
}(function() { | |
return function t(e, n, r) { | |
function o(a, u) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body, html { | |
/* img cover all page */ | |
height: 100%; | |
/* margin padding to Zero*/ | |
margin: 0; | |
padding: 0; | |
} | |
.bgimg { | |
/* bg image */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set date for count down | |
var countDownDate = new Date("Dec 31, 2018 00:00:00").getTime(); | |
// update the counter down every 1 sec | |
var countDownFunction = setInterval(function(){ | |
// get today date | |
var now = new Date().getTime(); | |
// find distance btw now and countdown Date | |
var distance = countDownDate - now ; | |
// time calc for days, hours , minutes and seconds | |
var days = Math.floor(distance /(1000 * 60 * 60 * 24)); |