Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Tuesday, 17 July 2018

undefined undefined

Device Check / Mobile Detect PHP

Download Library From : http://aksolution.co.nf/wp-content/uploads/2018/07/Mobile-Detect.zip require_once ‘Mobile-Detect/Mobile_Detect.php’; //include library file path $detect = new Mobile_Detect; $deviceType = ($detect->isMobile() ? ($detect->isTablet() ? ‘tablet’ : ‘phone’) : ‘computer’); //...

Thursday, 14 June 2018

undefined undefined

DropDown with multiple with open select option

//Multiple Select Drop Down Code <div class="multiselect" id="multiple">     <?php     global $wpdb;     $getid= $_GET['id'];     $sql11 = "SELECT * FROM TABLENAME WHERE id = '$getid'";     $result11 = $wpdb->get_results($sql11);     $count1 =...

Wednesday, 13 June 2018

undefined undefined

PHP Basic Functions - splits, strcmp, md5, ucwords, strstr, trim, number_format

<?php //splits a string into an array echo "splits a string into an array -- "; $a="this is test string"; $m=str_split($a,4); print_r($m); //Compare two strings echo "<br><br>"; echo "Compare two strings -- "; $a="gfhgfhgfhfghgfhfghg"; $b="g"; if(strcmp($a,$b)==0) { echo "both are same"; } else { echo...

Wednesday, 23 May 2018

undefined undefined

Checkbox Show/Hide Hidden With Multiple Fields

<form action="#" method="POST">  <div> Checkbox 1:    <input type="checkbox" id="checkbox_one" name="Checkbox1" data-trigger="hidden_checkbox_one" class="trigger">  </div>  <div id="hidden_checkbox_one" class="hidden"> This is hidden one:   ...

Tuesday, 8 May 2018

undefined undefined

PHP - Sending Emails using PHP

$to = "xyz@domainname.com"; $subject = "This is subject";  $message = "This is HTML message."; $message .= "This is headline."; $header = "From:info@domainname.com \r\n"; // domainname.com or domainname.co.in with domain name $header .= "Cc:test@domainname.com \r\n"; $header .= "MIME-Version: 1.0\r\n"; $header...

Wednesday, 18 April 2018

undefined undefined

json_decode utf issue php

function dataJSON($inputs) {  //This will convert ASCII/ISO-8859-1 to UTF-8.  //Be careful with the third parameter (encoding detect list), because  //if set wrong, some input encodings will get garbled (including UTF-8!)  //$imput = mb_convert_encoding($inputs, 'UTF-8', 'ASCII,UTF-8,ISO-8859-1');  //Remove...
undefined undefined

Google Adsense

What is Google Adsense? Google Adsense is a shortcut used by online publishers because it gives them access to a number of online advertisers. If you are an online publishers, advertisers will publish on your website. When the link to their site is clicked you earn money. Google Adsense is not another get rich...