Skip to content

Instantly share code, notes, and snippets.

View mahbub-shohag's full-sized avatar

Mahbub Alam Shohag mahbub-shohag

  • Jagannath university
  • Mohammadpur,Dhaka
View GitHub Profile
<?php
namespace App\Courses;
use PDO;
class Courses{
public $id = "";
public $unique_id = "";
public $title = "";
public $duration_m = "";
public $duration_h = "";
{
"autoload":
{
"psr-4":
{
"App\\" : "Src"
}
}
}
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" lang="en-US">
<![endif]-->
<?php
include_once "links.php";
echo "<body>";
include_once "header.php";
//<!-- Page container -->
echo '<div class="page-container">
<!-- Page content -->
<div class="page-content">';
<?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']);
?>
<?php
include_once ('../../vendor/autoload.php');
use App\Courses\Courses;
$obj = new Courses();
$data = $obj->prepare($_GET)->delete();
?>
<?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();
1.Data table styling : https://datatables.net/blog/2011-05-10 [28.12.16 ->Apsis]
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;
git init
git add .
git commit -m 'message'
git push -u origin master