#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 MoreCodeIgniter
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 Morehow 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 MoreDecode 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 MoreOrder 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 MoreHow 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 MoreMake 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 MoreFacebook 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 MoreGet 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