DATATABLE FETCHING : PAGING WISE https://datatables.net/forums/discussion/25931/load-first-n-pages-on-server-side-tables https://datatables.net/examples/server_side/pipeline.html http://stackoverflow.com/questions/23278361/datatables-not-load-all-data-at-once
Read MoreArticle
Php-Get image name and extension
<?php $image = “glass.jpg”; //Getting image name $img_name = pathinfo($image, PATHINFO_FILENAME); //Getting image extension $img_ext = pathinfo($image, PATHINFO_EXTENSION); ?>
Read MoreAppend a div or input box
$(‘#add_more’).click(function() { $(this).before($(“<div/>”, {id: ‘filediv’,style:”}).fadeIn(‘slow’).append( $(“<input/>”, {name: ‘file[]’, type: ‘file’, id: ‘file’,class:”btn btn-warning btn-big”}), $(“<br/><br/>”) )); });
Read MoreHtaccess help
For htaccess help HostGator support:: http://support.hostgator.com/articles/apache-mod_rewrite-and-examples
Read MoreGetting all category arranged in php
<?php $categories = getTableData(“categories”, “*”, “pid=0 LIMIT 2”,TRUE); //Getting sub category under this main category:: foreach($categories as $key => &$val) { $val[‘sub’] = getTableData( “categories”,”*”,”pid={$val[‘id’]}”, …
Read MoreOn change select option redirect to different page
<select name=’url’ onchange=”javascript:window.location.href=this.options[this.selectedIndex].value;”> <option value=””>Action</option> <option value=”name_edit.php?id=<?=$d[‘id’]?>”>View details</option> <option value=”javascript:if(confirm(‘Are you sure wish to delete?’)){window.location.href='<?=$_SERVER[‘PHP_SELF’] . “?del_id=” . $d[‘id’];?>’;}”>Delete</option> <option value=”userlist.php?userid=<?=$userid;?>”>User list</u></option> <option …
Read Moreck editor options
## CK EDITOR OPTIONS:: <script type=”text/javascript”> CKEDITOR.replace(‘editor_office2003’, { height: ‘300px’, enterMode: CKEDITOR.ENTER_BR, toolbar: [ { name: ‘document’, groups: [‘document’, ‘doctools’], items: [‘Save’, ‘NewPage’, ‘Preview’, …
Read MoreDoes each subdomain need it’s own SSL certificate?
Do You Need an SSL Cert for Each Subdomain Yes and No, it depends. Your standard SSL certificate will be for single domain, say ‘www.domain.com’. …
Read More