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

Calculate percentage using jQuery in php

February 15, 2017 Chandan SharmaComment on Calculate percentage using jQuery in php

<script type=”text/javascript”> function calpercentge(e) {          var pcnt=6;     var nprice=0;     var spval= e.value;            …

Read More
CodeIgniter / JavaScript / JQuery / PHP

SELECT ALL CHECK BOX USING JAVASCRIPT

February 15, 2017 Chandan SharmaComment on SELECT ALL CHECK BOX USING JAVASCRIPT

function select_all2() {   for (var i=0;i<document.form3.elements.length;i++)   {     var e =document. form3.elements[i];     if ((e.name != ‘check_all’) && (e.type==’checkbox’))     …

Read More
Article / CodeIgniter / payment gateway / PayUMoney / PHP

PayUMoney return data after payment

January 30, 2017 Chandan SharmaComment on PayUMoney return data after payment

    Array ( [mihpayid] => 403993715515489558 [mode] => CC [status] => success [unmappedstatus] => captured [key] => DgdPazAK [txnid] => CHN00001140 [amount] => 5000.0 …

Read More
Article / CodeIgniter / JavaScript / JQuery / PHP

Email Validation in jquery

January 29, 2017 Chandan SharmaComment on Email Validation in jquery

function validateEmail(email) {       var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;       return emailReg.test( email );   } Return TRUE/ FALSE

Read More
Article / CodeIgniter / HTML / JavaScript / JQuery / PHP

Jquery- Email Validation

January 29, 2017 Chandan SharmaComment on Jquery- Email Validation

function isEmail(email) { var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; return regex.test(email); } It’s returns true or false

Read More
Article / CodeIgniter / PHP

Get URL segments in core php

January 27, 2017 Chandan SharmaComment on Get URL segments in core php

//– META KEYWORDS:: –     $XSHRMETA_REQUEST_URI_PATH = parse_url($_SERVER[‘REQUEST_URI’], PHP_URL_PATH);     $XSHRMETA_URI_SEGMENTS     = explode(‘/’, $XSHRMETA_REQUEST_URI_PATH);     //print_r( $XSHRMETA_URI_SEGMENTS);     // …

Read More
CodeIgniter / PHP

php- Redirect the same page

January 1, 2017 Chandan SharmaComment on php- Redirect the same page

# Its Redirects the same page where it is.. header(“location:http://{$_SERVER[‘HTTP_HOST’]}{$_SERVER[‘REQUEST_URI’]}”); using this post request can be blanked or empty no duplicate data will insert in …

Read More
Article / CodeIgniter / PHP

php- How to get image height and width

December 28, 2016 Chandan SharmaComment on php- How to get image height and width

# LIST IMAGE INFO list($width, $height, $type, $attr) = getimagesize($_FILES[“img”][‘tmp_name’]); echo $width; // shows width echo $height; // shows height

Read More
CodeIgniter / PHP

Php – How to add day,month,year with current date

December 22, 2016 Chandan SharmaComment on Php – How to add day,month,year with current date

## ADD DAYS, MONTHS, YEAR WITH CURRENT MONTHS::   FORMAT:: date(‘Y-m-d’, strtotime(‘+2 months’)); EXAMPLE:: $duration = 5;   if($calas == “days”) { $plus = ‘+’.$duration.’ …

Read More
CodeIgniter / PHP

Php – How to use form Validation in CodeIgniter

December 22, 2016 Chandan SharmaComment on Php – How to use form Validation in CodeIgniter

## MAKE REQUIRED AND UNIQUE IN CODEIGNITER   // ONLY REQUIRED FIELDS $this->form_validation->set_rules(‘answer4’, ‘Answer Four’, ‘required’);  // ONLY REQUIRED WITH DATABASE UNIQUE VALUE $this->form_validation->set_rules(‘title’, ‘Question …

Read More

Posts navigation

Previous 1 … 16 17 18 … 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.