What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-27 05:50:07
"codeigniter 4" cart
<?php echo form_open('path/to/controller/update/method'); ?> <table cellpadding="6" cellspacing="1" style="width:100%" border="0"> <tr> <th>QTY</th> <th>Item Des... Add solution -
PHP 2021-10-25 01:19:06
how to return with open model popup in laravel
//pass back a variable when redirecting return Redirect::back()->with('error_code', 5); //in blade tempalte @if(!empty(Session::get('error_code')) && Session::get('error_code') == 5) <script> $(function() { $('#myModal').modal('show'... Add solution -
PHP 2021-10-23 08:11:14
how to get users IP address in php
The simplest way to collect the Client/Visitor IP address using PHP is the REMOTE_ADDR. Pass the 'REMOTE_ADDR' in PHP $_SERVER variable. It will return the IP address of the visitor who is currently viewing the webpage. Get the IP address of the website ... Add solution -
PHP 2021-10-22 18:35:13
wp+get feature image
<?php if (has_post_thumbnail( $post->ID ) ): ?> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> <div id="custom-bg" style="background-image: url('<?ph... Add solution -
Other 2021-10-19 14:12:05
"codeigniter 4" cart
<?php echo form_open('path/to/controller/update/method'); ?> <table cellpadding="6" cellspacing="1" style="width:100%" border="0"> <tr> <th>QTY</th> <th>Item Des... Add solution -
PHP 2021-10-18 21:28:03
get user ip in php
The simplest way to collect the Client/Visitor IP address using PHP is the REMOTE_ADDR. Pass the 'REMOTE_ADDR' in PHP $_SERVER variable. It will return the IP address of the visitor who is currently viewing the webpage. Get the IP address of the website ... Add solution -
TypeScript 2021-10-18 15:45:06
related posts wordpress without plugin
<?php /** * Blog Template Part for displaying single blog related posts * * @package Thype * @subpackage Blog Parts * @since 1.0.0 * */ $the_query = codeless_get_related_posts( get_the_ID(), 4 ); global $cl_from_element; $cl_from_element['is_r... Add solution -
PHP 2021-10-12 05:33:03
share wordpress post on whatsapp without plugin
<?php $url = urlencode(get_the_permalink()); $title = htmlspecialchars(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8'); ?> <div class='social-share'> <a class='fb' target="_blank" h... Add solution