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’); //...
Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts
Tuesday, 17 July 2018
Thursday, 14 June 2018
undefined
undefined
//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
//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
<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
$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
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
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...