Skip to content

Logic Bytes

Spread Your Knowledge

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

CodeIgniter

CodeIgniter / PHP

Beadcrum in php

June 9, 2017 Chandan SharmaComment on Beadcrum in php

##  FOR DYNAMIC BREADCRUM:: filename = breadcrum.php; <?php class breadcrumb_class {     var $breadcrumb = array();     function insertBreadcrumb($title,$path=”#”)     {   …

Read More
CodeIgniter / JavaScript / JQuery / PHP / Validation

Form validation using jQuery in php

June 6, 2017 Chandan SharmaComment on Form validation using jQuery in php

## form validation in JQuery <script type=”text/javascript”> $(document).ready(function(){    $(‘#send_enquiry’).click(function(){ var get_validate = validateForm();        console.log(get_validate); if(get_validate>0){    return false; }else{    return …

Read More
CodeIgniter / PHP

Download a file in php

June 2, 2017 Chandan SharmaComment on Download a file in php

## Download file with a save option in php. $filename = “newfile.pdf”; $file_url = $filepath.$filename; //example: $file_url = ‘http://www.link.com/file.pdf’; header(‘Content-Type: application/octet-stream’); header(“Content-Transfer-Encoding: Binary”);  header(“Content-disposition: attachment; …

Read More
CodeIgniter / JavaScript / JQuery / PHP

jQuery click not working after append div

May 31, 2017 Chandan SharmaComment on jQuery click not working after append div

#Jquery: Click event doesn’t work after append.  $(document).on(‘click’, ‘.’, function(e) //do whatever });

Read More
CodeIgniter / Htaccess / PHP

Routing using htaccess

May 20, 2017 Chandan SharmaComment on Routing using htaccess

RewriteEngine on RewriteBase / ###Maintainance ## RewriteRule ^maintainanace/$ maintain.php RewriteRule ^logout/$ logout.php RewriteRule ^logout$ logout.php RewriteRule ^products/([^/]*)/([^/]*)/$ products.php?slug=$1&id=$2 [L]

Read More
CodeIgniter / Google Map / PHP

Show location in Google map using php

May 20, 2017 Chandan SharmaComment on Show location in Google map using php

<?php $location=”Kolkata”; ?> <div style=”width: 100%”> <iframe width=”100%” height=”480″ frameborder=”0″ scrolling=”no” marginheight=”0″ marginwidth=”0″ src=”https://maps.google.it/maps?q=<?php echo $location;?>&output=embed”></iframe> </div>

Read More
CodeIgniter / PHP

Image upload in php

May 20, 2017 Chandan SharmaComment on Image upload in php

#IMAGE UPLOAD if ($_FILES[‘list1’][‘name’] != “”) { $allowed_ext = array(“jpg”, “jpeg”, “png”, “gif”); $extension = explode(‘.’, $_FILES[“list1”][“name”]); $ext = strtolower(end($extension)); if (in_array($ext, $allowed_ext)) { $newname …

Read More
CodeIgniter / Database / mysql / PHP / SQL

On delete Cascade in php

May 18, 2017 Chandan SharmaComment on On delete Cascade in php

## On Delete one main table data ,delete related others table data. ALTER TABLE Courses ADD FOREIGN KEY (CatCode) REFERENCES Categories(Code) ON DELETE CASCADE;

Read More
CodeIgniter / Database / mysql / PHP / SQL

Sql-. On delete Cascade in sql

May 17, 2017 Chandan SharmaComment on Sql-. On delete Cascade in sql

#ON DELETE CASCADE IN SQL Cascade will work when you delete something on table Courses. Any record on table BookCourses that has reference to table …

Read More
Article / CodeIgniter / Image / PHP

Php-Get image name and extension

May 16, 2017 Chandan SharmaComment on 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 More

Posts navigation

Previous 1 … 13 14 15 … 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.