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
<?php | |
namespace App\Courses; | |
use PDO; | |
class Courses{ | |
public $id = ""; | |
public $unique_id = ""; | |
public $title = ""; | |
public $duration_m = ""; | |
public $duration_h = ""; |
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
{ | |
"autoload": | |
{ | |
"psr-4": | |
{ | |
"App\\" : "Src" | |
} | |
} | |
} |
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
<!DOCTYPE html> | |
<!--[if IE 7]> | |
<html class="ie ie7" lang="en-US"> | |
<![endif]--> | |
<!--[if IE 8]> | |
<html class="ie ie8" lang="en-US"> | |
<![endif]--> |
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
<?php | |
include_once "links.php"; | |
echo "<body>"; | |
include_once "header.php"; | |
//<!-- Page container --> | |
echo '<div class="page-container"> | |
<!-- Page content --> | |
<div class="page-content">'; |
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
<?php include_once ('../../vendor/autoload.php'); | |
include_once ('../../vendor/autoload.php'); | |
use App\Courses\Courses; | |
$obj = new Courses(); | |
$data = $obj->prepare($_GET)->show(); | |
$duration = unserialize($data['duration']); | |
?> |
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
<?php | |
include_once ('../../vendor/autoload.php'); | |
use App\Courses\Courses; | |
$obj = new Courses(); | |
$data = $obj->prepare($_GET)->delete(); | |
?> |
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
<?php | |
include_once ('../../vendor/autoload.php'); | |
use App\Courses\Courses; | |
/*print_r($_REQUEST); | |
die();*/ | |
$obj = new Courses(); | |
$_SESSION['All_data'] = $_POST; | |
$obj->prepare($_POST)->store(); |
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
1.Data table styling : https://datatables.net/blog/2011-05-10 [28.12.16 ->Apsis] |
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
https://github.com/verot/class.upload.php/blob/master/README.md | |
$foo = new Upload($_FILES['form_field']); | |
if ($foo->uploaded) { | |
// save uploaded image with no changes | |
$foo->Process('/home/user/files/'); | |
if ($foo->processed) { | |
echo 'original image copied'; | |
} else { | |
echo 'error : ' . $foo->error; |
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
git init | |
git add . | |
git commit -m 'message' | |
git push -u origin master |
OlderNewer