
Search In
If you would like to get address from latitude and longitude. You can use below function:
public function getAddressbylatlong($latitude, $longitude){
$latlng = $latitude. ','.$longitude;
$geocode = file_get_contents('http://maps.go
When creating web applications, always a need arises when we have to iterate over a large number of records.
This process is called retrieving multiple objects in batches. This can be done through find_each method.
The find_each method by default i
In javascript you can change the background color of HTML page,It is very simple to understand.
Example:
HTML Code:
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body onload="backgroundcolorchange();">
Hello Reader's ,
We can see that posting & Online time changes frequently seconds ago, minutes ago and hours ago etc, In Social media. So Today in my blog I am going explain about timeago and its easy implementation with PHP.
First, you nee
When we apply LIKE keyword to any query then it doesn't return NULL values, and sometimes it required to return NULL values as well. We can do this by using IS NULL or IFNULL operator.
Example:
We have a table "employee" as below:
&n
Hello Readers,
In this tutorial, i will explain how to add massDelete & massStatus action in magento. This tutorial assumes you already know how to create Magento admin grid.
Advantage of Mass Action: Mass Action option plays very important role
Hey guys! I want to write a program that finds the sum of cubed terms. i.e. 1**3 + 2**3 + n**3
I wrote down the following code:
// n = input('Give the value of n.')
n = int (n)
s = ((n(n+1))/2)**2
print ('Sum equals =', s
There are conditions when we need to show sql error messages to users such as Duplicate Entries from database.
For example in cakephp, if there is duplicacy error from database then it will show following message to the user:
"Database Error E
If you are interested in making your own Soft Keyboard in android, then this tutorial will be helpful for you. Below are few steps to learn how to create your own Soft Keyboard that can serve as your own default keyboard.
Step1: To enter a text Inpu
Promises - AngularJS's promise provides a built-in service $q. It provide a way to execute asynchronous call in series by registering it with a promise object.
Let us now elaborate promise and deferred.
Deferred - It represent the result/o
