This file contains 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
while($row = $result->fetch_assoc()) { | |
echo "<tr><td>" . $row["id"]. "</td> | |
<td>" . $row["name"]."</td> | |
<td>" . $row["email"]. "</td> | |
<td><a href='edit.php?id=". $row["id"] ."'> <button class='btn'>Edit</button></a> <br><br> | |
<a href='formd?id=".$row["id"]."'> <button id='delete-btn' data-user_id='".$row["id"]."''>Delete </button> </a> | |
</td> | |
</tr>"; | |
} | |
echo "</table>"; |
This file contains 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://www.bootstrapdash.com/flat-minimalist-admin-templates/ |
This file contains 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
<html> | |
<head> | |
<title>PaintBrush Application Demo</title> | |
<style type="text/css"> | |
h1 { | |
font-size: 20px; | |
font-weight: bold; | |
} |
This file contains 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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Testing moment Js</title> | |
</head> | |
<body> | |
<table border="1" class="table table-hover" id="myTable"> | |
<thead> | |
<tr> |
This file contains 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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class LanguageLoader { | |
public function initialize() { | |
$ci =& get_instance(); | |
$ci->load->helper('language'); | |
$siteLang = $ci->session->userdata('site_lang'); | |
if ($siteLang) { |
This file contains 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Jquery_validation { | |
private $rules; // json rules for jQuery validator | |
private $messages; // custom error messages for jQuery validator | |
private $js_rules = array( 'required' => 'required', | |
'matches' => 'equalTo', | |
'min_length' => 'minlength', | |
'max_length' => 'maxlength', | |
'greater_than' => 'min', |
This file contains 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
public function carbonTest() | |
{ | |
$tz = 'UTC'; | |
$asia = 'Asia/Calcutta'; | |
date_default_timezone_set($tz); | |
// $currentTime = carbon()->now()->tz($asia)->format('H:i:s'); | |
$currentTime = '21:01:00'; |
This file contains 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 (!function_exists('carbon')) { | |
function carbon(...$args) { | |
return new Carbon\Carbon(...$args); | |
} | |
} |
This file contains 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 | |
require 'vendor/autoload.php'; | |
require 'helpers.php'; | |
$randomTxt = "jagroop singh."; | |
$redeemdesc = 'Reward entitles you to one night of Romance with Giver. Giver will take all necessary steps to create the mood and conditions to spark the'; | |
$redeemPoint = '750'; | |
$title = 'Reward title'; | |
$firstReply = parseString($randomTxt); | |
$from = 'jagroop'; |
This file contains 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 | |
function parseString($text, $limit = 100, $end = '') | |
{ | |
$text = preg_replace("/[\r\n]+/", "\n", $text); | |
$value = stripslashes(preg_replace("/\s+/", ' ', $text)); | |
if (mb_strlen($value) <= $limit) { | |
return $value; | |
} | |
return rtrim(mb_substr($value, 0, $limit, 'UTF-8')) . $end; |