Skip to content

Logic Bytes

Spread Your Knowledge

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

CodeIgniter

CodeIgniter / PHP

Whether we can have a form inside another form?

September 23, 2017 Chandan SharmaComment on Whether we can have a form inside another form?

#Whether we can have a form inside another form? Though you can have several <form> elements in one HTML page, you cannot nest them. We …

Read More
CodeIgniter / PHP

get last insert id after insert query in codeigniter active record

September 21, 2017 Chandan SharmaComment on get last insert id after insert query in codeigniter active record

– get last insert id after insert query in codeigniter active record function add_post($post_data){    $this->db->insert(‘posts’, $post_data);    $insert_id = $this->db->insert_id();    return  $insert_id; } …

Read More
CodeIgniter / PHP

how to get last insert id after insert query in codeigniter active record

September 21, 2017 Chandan SharmaComment on how to get last insert id after insert query in codeigniter active record

#how to get last insert id after insert query in codeigniter active record Example: For add data into table, function add_post($post_data){    $this->db->insert(‘posts’, $post_data);   …

Read More
CodeIgniter / PHP

Decode html encoded contents in php

September 20, 2017 Chandan SharmaComment on Decode html encoded contents in php

## Html contents decode in php $contents = Original Content with html encoded tags; $contents_decoded = htmlspecialchars_decode($contents, ENT_QUOTES); echo html_entity_decode($contents_decoded);

Read More
CodeIgniter / PHP

Order By Rand in Codeigniter

September 19, 2017 Chandan SharmaComment on Order By Rand in Codeigniter

#Order By Rand in Codeigniter function get_random_page() { $this->db->order_by(‘id’, ‘RANDOM’); or $this->db->order_by(‘rand()’); $this->db->limit(1); $query = $this->db->get(‘pages’); return $query->result_array(); } Codeigniter provides the use of ‘RANDOM’ …

Read More
CodeIgniter / Curl / PHP

Send Message from Website in php

September 14, 2017 Chandan SharmaComment on Send Message from Website in php

Send Message Using Bhashsms.com to user mobile phone from the website. $api_username = sms_api_username; $api_userpwd  = sms_api_pwd; $send_id = SMS_SEND_ID; $curl = “http://bhashsms.com/api/sendmsg.php”; $msg = …

Read More
CodeIgniter / PHP

How to make Panel section dynamically active in php

September 1, 2017 Chandan SharmaComment on How to make Panel section dynamically active in php

# Make TAb panel Active dynamically //active tab option $profile_active     = “active”;  $profile_paneActive = “active”;   $addresses_active = “”; $addresses_paneActive = “”; $orders_active …

Read More
CodeIgniter / JavaScript / JQuery / PHP

Make string uppercase in jquery

August 3, 2017 Chandan SharmaComment on Make string uppercase in jquery

## get ucfirst in jquery ## get first letter uppercase in jquery   <!– Html Input box : starts –> <p><input type=”text” id=”test” name=”test”/></p> <p><input …

Read More
Article / CodeIgniter / Facebook / PHP / Social login

Facebook login in core php

July 30, 2017 Chandan SharmaComment on Facebook login in core php

<!–Add in Header / where login –> <button class=”facebook” id=”facebook”><i class=”fa fa-facebook” aria-hidden=”true”></i>Sign in with Facebook</button> <!– Add in Header / where login –> ## …

Read More
Article / CodeIgniter / PHP

Get Location details using IP address

July 28, 2017 Chandan SharmaComment on Get Location details using IP address

<?php $my_location_ip =’95.212.128.0′; $url = “http://ipinfo.io/{$my_location_ip}/json“; //======== Using Curl //Function : Starts ======= ##Get a web file (HTML, XHTML, XML, image, etc.) from a URL.  …

Read More

Posts navigation

Previous 1 … 10 11 12 … 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.