இடுகைகள்

Backup MySQL database with CodeIgniter? Tamil Programmers

படம்
#behindthecode function backup()     {                 $this->load->dbutil();          $backup = $this->dbutil->backup();         $name   = date('d-M-Y').'- mariappan.gz';                 $this->load->helper('file');         $path = base_url().'backup/'.$name;         write_file($name, $backup);                 $this->load->helper('download' );         force_download($name, $backup);     } by Tamil Programmers

DATATABLE ANCHOR TAG CLICK AJAX ? Tamil Programmers

படம்
#behindthecode $('#table_name tbody').on( 'click', 'tr td a', function () { //HERE AJAX CODE }); by Tamil Programmers

AJAX error handling with jQuery ? Tamil Programmers

படம்
#behindthecode $ . ajax ({ url : 'test.html' , success : function ( response ) { $ ( '#post' ). html ( response . responseText ); }, error : function ( jqXHR , exception ) { var msg = '' ; if ( jqXHR . status === 0 ) { msg = 'Not connect.\n Verify Network.' ; } else if ( jqXHR . status == 404 ) { msg = 'Requested page not found. [404]' ; } else if ( jqXHR . status == 500 ) { msg = 'Internal Server Error [500].' ; } else if ( exception === 'parsererror' ) { msg = 'Requested JSON parse failed.' ; } else if ( exception === 'timeout' ) { msg = 'Time out error.' ; } else if ( exception === 'abort' ) { msg = 'Ajax request aborted.' ; } else { msg = 'Uncaug...

Print all day-dates between two dates? Tamil Programmers

படம்
How to Get All Dates Between Two Dates? #behind the code function getDatesFromRange($start, $end, $format = 'Y-m-d') { $array = array(); $interval = new DateInterval('P1D'); $realEnd = new DateTime($end); $realEnd->add($interval); $period = new DatePeriod(new DateTime($start), $interval, $realEnd); foreach($period as $date) { $array[] = $date->format($format); } return $array; } $start = '2019-01-01'; $end   = '2019-01-31'; $dates = getDatesFromRange($start, $end); foreach($dates as $date) {     echo $date; } by Tamil Programmers

Dynamic add row in JQuery? Tamil Programmers

படம்
<!DOCTYPE html> <html lang="en"> <head>   <title>Behind The Code</title>   <meta charset="utf-8">   <meta name="viewport" content="width=device-width, initial-scale=1">   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> </head> <body> <div class="container">  <table width="100%" class="table table-bordered">    <tr>     <td> Name : Mariappan </td>      <td> <button class="add">Add </button> </td>    </tr>    <tr>     <td> Name : Mariappan </td>      ...