Kartar Infotech

Developers Guide Portal

Try To Help's You Through To the Point Solutions.

search in a table without hit in database using jquery filter

Here we use concept of javascript filter ie used to search data from table .The advantage of this is that no need to search data one by one from table .
suppose this is table

                                                           

Read More

How to use Insert IGNORE in laravel

Insert Ignore is very relevant and useful feature in laravel . It avoid duplicate entry in database . but for this make column unique in table. For the job you need to create a new Grammar that will have the right string in there:Follow following steps for use the concept of insert ignore in laravel.

grammar.p

Read More

How to use array_search between two array in php

In this am discussing a topic that we faced normally in our coding ie: "array_search" among two or more array .let me discuss with an example:Suppose we have two array named array1 and array2 , in array1 we  find key that exist in second array. it will return key .
$array1 = array(.
array(.
'uid' => '100',.
'name' => 'Sandra Shush',.
'age' => '12'.
),.
array(.
'uid' => '5465',.
'name' => 'Stefanie M

Read More

Xero APP Type Details

Today we discuss about different type of XERO APP. Xero provide three type of APP's
.1.)Private APP.
2.)Public APP
3.)Partner APP.
Each app have own features.Lets see one by one.
A.) Private APP -  This type of app we only use if we connect only one Xero Account. For example, you only allow your customers or staff to create invoice,customers,vendor,bill etc in your xero account only.Then we use Private APP, in this type not need of authentication process.We connect the copy one

Read More

How to get bank transactions using Xero API

We can get the bank transactions from xero using api. If you using the Private APP then first you add your app details into private app like secret key,client id, app name etc.Then we canget bank transaction with some conditions also using "WHERE Clause".

Please take a look over code below.

Read More

How To Use Curl in Wordpress

Now a day almost in every project use third party api and we call the api using curl.Curl provided GET,POST,PUT,DELETE method to perform the action accordingly.Today we discuss how to use curl in wordpress.How we call the api in wordpress.There are two ways.
1.)We use simple php curl function if you not much familiar with wordpress.
2.)Wordpress provide own functions for curl like wp_remote_get(), wp_remote_post.
1.) wp_remote_get() --  this function we use when we ne

Read More

How to extract user and caption from instagram image URL

Sometimes instagram not give the instagram user id for fetch the posts so that we get the post/story details using the instagram post/story url like https://www.instagram.com/B94hc9ncms.For that we only need to use Instagam's Embedding Endpoints.Like that link.
http://api.instagram.com/oembed?url=http://instagr.am/p/rRoE9uskcD/
It will return all of post/story along with media details.It will return that info as json.

Read More

How to add Payment to invoice using Quickbook API

Here we post the code for mark the invoice as paid in quickbook using api..For that we need to call the create payment api  and assign that received payment to invoice by using invoice id.Once it assigned the correct  invoice id then, it automatically marked the invoice paid.Follow these steps.
1.)Refresh your tokens.
2.)Set the tokens in config.
3.)Call Create Payment api.
4.)Add payment class - use QuickBooksOnline\API\Facades\Payment

Read More

How to calculate distance between two cordinates using select query in Codegniter

In this tutorial we calculate the distance (Km , meters , seconds) between two cordinates using Select Query in codegniter. Here we just pass thetwo address named address1 and address2 and first we calculate latitude and longitude of both address. Based on these latitude and longitude we calculate distance.
Example:-Suppose we calculate distance from Jalandhar city to Chandigarah city
"address1":"jalandhar","address2":"chandigarah"
Then function in model is :
public functio

Read More

How to calculate distance between two cordinates by passing address in Codegniter

In this tutorial we calculate the distance (Km , meters , seconds) between two cordinates using GOOGLE API. Here we just pass the two address named address1 and address2.
Example:- Suppose we calculate distance from Jalandhar city to Chandigarah city
"address1":"jalandhar", "address2":"chandigarah"
Then function in model is :
public function findDistance()
{
$from = "jalandhar";
$to = "chandigarah";
$from = urlencode($from);
$to = u

Read More
FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@mail.com
July