Submit Your Website RSS Feed, Get free backlink for lifetime

Redirecting HTTP to HTTPS with PHP

Today i am showing you how to redirect http to https or force users to redirect with HTTPS instead of HTTP using php with non www url to www url. Over the past few years, HTTPS has risen in popularity – especially since Google announced that HTTPS was being used as a ranking signal for […]

The post Redirecting HTTP to HTTPS with PHP appeared first on PHPKIDA.

SQL statement to retrieve names beginning with A

In MySQL use the ‘^’ to identify you want to check the first char of the mysql table filed then you can do like below example. SELECT * FROM `table_name` WHERE field_name REGEXP '^a' If you want to check more then a alfa letters of the string then define the array [] of letters you […]

The post SQL statement to retrieve names beginning with A appeared first on PHPKIDA.

Select box with search option jquery

Today i am show you how can we create simple select box with search option with the help of Jquery. There are several plugins available in google like select2, selectbox etc, But i found simple and best plugin for select box with search option its Chosen plugin. You can also use with bootstrap. I give […]

The post Select box with search option jquery appeared first on PHPKIDA.

comma separated values in mysql query

Here i am showing you how to execute MySQL query finding values in a comma separated string and fetch accurate result which you looking for. If your table field contain a comma delimited string such as (1,2,5,,9,12,15) Each number representing the available ids of other table or other value of different table. get comma separated […]

The post comma separated values in mysql query appeared first on PHPKIDA.

Get Latitude Longitude from Address

In this tutorial i will show you how to convert address into Latitude Longitude using google map API. Get Latitude Longitude is a very simple you can search for any address and find latitude and longitude. Here i am create a simple text box for enter address and click on button your Latitude Longitude will […]

The post Get Latitude Longitude from Address appeared first on PHPKIDA.

Remove All Special Characters From String PHP

I think you have understood everything in the title of this post that what we are talking about today. Today we will tell you how we remove all the special characters from any string. I know some time we facing an issue with URLs, Strings, Titles. for example If you working on form where user […]

The post Remove All Special Characters From String PHP appeared first on PHPKIDA.

How to remove whitespace from string using php

Here i showing you how to remove more then one or multiple white-space and replace each with only one space. Remove multiple white-space simply we have to use a regular expression. Example: Take all of the spaces of the string and replace each with only one space $string = "This is simple string with multiple […]

The post How to remove whitespace from string using php appeared first on PHPKIDA.