Skip to content

Logic Bytes

Spread Your Knowledge

  • Home
  • How To
  • PHP
    • Cakephp
    • WordPress
    • CodeIgniter
    • Laravel
  • Python
    • Django
    • Flask
  • Contact

CodeIgniter

CodeIgniter / JavaScript / JQuery / PHP

how to get window size for making screen wise changes

February 17, 2018 Chandan SharmaComment on how to get window size for making screen wise changes

var ww = document.body.clientWidth; if (ww < 768) { } else if (ww >= 768) { }

Read More
CodeIgniter / PHP

Calculate Date Difference in php

February 13, 2018 Chandan SharmaComment on Calculate Date Difference in php

#Date Difference $date_1 = ‘2018-02-16’; $date_1 = ‘2018-02-18’; $dateDifference = dateDifference($date_1, $date_2); print_r($dateDifference); function dateDifference($date_1 , $date_2 , $differenceFormat = ‘%a’ ) { $datetime1 = …

Read More
CodeIgniter / JavaScript / JQuery / PHP

Select all Checkbox in Javascript

February 12, 2018 Chandan SharmaComment on Select all Checkbox in Javascript

Select all Checkbox in Javascript:: <script type=”text/javascript”> $(document).ready(function(){ $(“#checkbx_selectall”).on(‘change’, function() { if(this.checked){             $(‘.__chckbx_select’).each(function(){             …

Read More
CodeIgniter / JavaScript / JQuery / PHP

Check if Field is empty or Not in Javascript

February 12, 2018 Chandan SharmaComment on Check if Field is empty or Not in Javascript

Check if Field is empty or Not in Javascript:: $(“#search-form”).on(‘submit’,function(){ var dis = $(this); searchbox = dis.find(“input[name=’product_name’]”).val(); var submitform = true; $(“#search-form-msg”).css(‘color’,’red’); if(searchbox.trim().length == 0){ …

Read More
CodeIgniter / JavaScript / JQuery / PHP

find input by name jquery in a form on submit in Javascript

February 12, 2018 Chandan SharmaComment on find input by name jquery in a form on submit in Javascript

find input by name jquery in a form on submit in Javascript:: $(“#search-form”).on(‘submit’,function(){ var dis = $(this); searchbox = dis.find(“input[name=’product_name’]”).val(); console.log(searchbox); return false; });

Read More
CodeIgniter / Database / mysql / mysqli / PHP / SQL

Altering column size in SQL Server

February 12, 2018 Chandan SharmaComment on Altering column size in SQL Server

Altering column size in SQL Server ALTER TABLE table_name ALTER COLUMN column_name datatype; LIKE:: ALTER TABLE `product` MODIFY COLUMN `updatedon` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP …

Read More
CodeIgniter / Database / mysql / PHP

mysql – Split value from one field to two

February 12, 2018 Chandan SharmaComment on mysql – Split value from one field to two

How to split a single column values to multiple column values? For Example: #Current table Field is like:: Name ———— abcd efgh ijk lmn opq …

Read More
CodeIgniter / PHP

Convert stdClass object to array in PHP

February 12, 2018 Chandan SharmaComment on Convert stdClass object to array in PHP

Convert stdClass object to array in PHP The easiest way is to JSON-encode your object and then decode it back to an array: $array = …

Read More
CodeIgniter / PHP

codeigniter $this->db->like is case sensitive

February 12, 2018 Chandan SharmaComment on codeigniter $this->db->like is case sensitive

There is no case insensitive version of the like function. What you can do is transform both sides of the comparison to lower case, so …

Read More
CodeIgniter / PHP

Check if uploaded file is CSV Format or not in php

February 10, 2018 Chandan SharmaComment on Check if uploaded file is CSV Format or not in php

$csv_mimetypes = array(     ‘text/csv’,     ‘text/plain’,     ‘application/csv’,     ‘text/comma-separated-values’,     ‘application/excel’,     ‘application/vnd.ms-excel’,     ‘application/vnd.msexcel’,   …

Read More

Posts navigation

Previous 1 2 3 4 … 23 Next

Recent Posts

  • Python Automation Framework-PyUnit (Unittest) Framework
  • Python Automation Framework-TestProject Framework
  • Python Automation Framework-Pytest Framework
  • Python Automation Framework-Lettuce Framework
  • Python Automation Framework-Behave Framework:
  • Top Python Testing Automation Frameworks in 2024
  • Visual Studio Code Keyboard Shortcut Editor
  • Visual Studio Code Keyboard Shortcuts
  • How to Remove Sidebar from Category Pages in WordPress?
  • Best Practices for API Responses

Automation Frameworks Automation Testing Behave Framework Blogger Blogspot Cakephp Cheat Sheets Code Editor CodeIgniter Code Navigation Collaborative Coding Debugging Tools Disable Mouse Right Click Domain Extension Editor Extension Full form Facebook Facebook Video Download IDE JavaScript JQuery Lettuce Framework Microsoft Code Editor Open-Source Code Editor PHP Pytest Framework Python Python-3.x Python Automation Python Automation Frameworks Python Automation Testing Python Pytest Framework Python Testing Frameworks Python TestProject Framework Python Unittest Framework Syntax Highlighting Testing Frameworks Text Editor for Developers Visual Code Visual Code Editor Visual Studio Code Visual Studio Code Cheat Sheet VSCode VSCodeEditor WordPress

Copyright © 2026 Logic Bytes.
Powered by WordPress and PridMag.