Skip to content

Logic Bytes

Spread Your Knowledge

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

CodeIgniter

Article / CodeIgniter / PHP

Php- Show any text only 100 letters

December 20, 2016 Chandan SharmaComment on Php- Show any text only 100 letters

## In a particular div by using this we can show only 100 letters and then … in php by removing tags. $product_description = html_entity_decode($product_description); …

Read More
CodeIgniter / PHP

Php – Remove html tags in php

December 20, 2016 Chandan SharmaComment on Php – Remove html tags in php

##  REMOVE TAGS :: strip_tags($content);

Read More
CodeIgniter / PHP

Php: decode html data in php

December 19, 2016 Chandan SharmaComment on Php: decode html data in php

## HTML DECODE :: varible $product_offer_decsription; html_entity_decode($product_offer_decsription);

Read More
Article / CodeIgniter / PHP / search

Php: How to show star rating

December 19, 2016 Chandan SharmaComment on Php: How to show star rating

## Showing Rating in Php using star & blank rating $ProductId = 1; $product_rating_qu = mysql_query(“select avg(rating) as star_rate from ratings where ratedto='” . $ProductId …

Read More
CodeIgniter / PHP

Php: show number with two decimal point

December 10, 2016 Chandan SharmaComment on Php: show number with two decimal point

## make number format upto 2 decimal point here we can use, number_format(): echo number_format((float)$number, 2, ‘.’, ”); ## Example: $foo = “105”; echo number_format((float)$foo, …

Read More
CodeIgniter / PHP

find key in array using php

December 8, 2016 Chandan SharmaComment on find key in array using php

## Find if key exists in the array list. Here key is searching in POST array. array_key_exists(‘status’, $_POST); Returns TRUE if the key exists and …

Read More
CodeIgniter / PHP

Flash message in php

December 3, 2016 Chandan SharmaComment on Flash message in php

## include this in every page.. if(isset($_SESSION[“errormsg”])) { $error = $_SESSION[“errormsg”]; session_unset($_SESSION[“errormsg”]); } else { $error = “”; } ## For showing the message just …

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

On click a radio button show or hide a div using Jquery

December 3, 2016 Chandan SharmaComment on On click a radio button show or hide a div using Jquery

## ON CHECK RADIO BUTTON SHOW OR HIDE A DIV USING JQUERY:: $(‘input[name=”usertype”]’).click(function() {       if($(‘input[name=”usertype”]:checked’))       {       …

Read More
CodeIgniter / JavaScript / JQuery / PHP

Redirect to another page using javascript

December 3, 2016 Chandan SharmaComment on Redirect to another page using javascript

Use this to redirect to another page. <script> window.location = “http://example.com/foo.php?option=500”; </script>

Read More
Ajax / CodeIgniter / JavaScript / PHP

How to check ajax request or not

November 27, 2016 Chandan SharmaComment on How to check ajax request or not

if (!empty($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && strtolower($_SERVER[‘HTTP_X_REQUESTED_WITH’]) == ‘xmlhttprequest’ ) { // It is ajax Request }

Read More

Posts navigation

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