We got into various situations where we need to find the time elapsed from a DateTime or simply a timestamp. To find the solution for these kinds of situations we can use Time Ago Function in PHP. Our today’s tutorial is based on the implementation of time ago function in our program with a simple example.
Category: PHP Snippets
PHP HURDLES is once again here with yet another intersting and commonly asked topic Understanding SQL BETWEEN Condition in PHP .
The SQL BETWEEN Condition is used to retrieve values within a range in a SELECT, INSERT, UPDATE, or DELETE statement.The values can be numbers, text, or dates.
Shaing on Social Media plays a key role in sharing of information in today’s world where we can easily share our information with millions of people through a social platform.Being a developer we always need to implement social sharing buttons on most of our sites.
So today we are here with a short but most interesting and important snippet for a developer Sharing On Social Media Using AddThis Plugin In PHP,which will give us all predefined codes and the only thing we have to do is to implement these codes in our site or page and the rest will automatically work for us.
Comparing various operands or variables based on different conditions is the basic thing which is done in every program we make for determining equality or inequality between two operands,So today we are here with a small snippet
Understanding SQL Comparison Operators which will explain about all the comparison operators used in PHP in most easiest way.
Today I will be talking about retrieving your website visitors Geographical details i.e their Country & City and then performing, some decision making based on the country and city from where your website has been accessed.
SQL Injection is one of the commonly faced problem by most of the applications on the internet today.
SQL Injection is a way by which database query can be controlled can result in compromise of confidentiality.
We have received a lots of comments by our young developers who are willing to know how they can prevent SQL Injection.
So Today PHPHurdles is here with a interesting as well as a crucial topic for the security of web applications,Preventing SQL Injections In PHP
Retrieving Information from database table is most basic and necessary task in any project,but fetched data is of no use if it is not organised and easily understandable.SQL’s ORDER BY ,GROUP BY are few promising functions in sql qhich makes the data well manages and organised.
So today PHPHurdles is presenting a short but very useful tutorial for our new developers who have recently started their carrer in PHP Understanding MySQL GROUP BY and ORDER BY which will help them in retrieving data from database in a well managed and organised way.
Today I am sharing one of the problems or you can say a learning curve through which I went a few days ago. I was asked to “fetch all the latest blog from one of my client’s blog which was in Wordpress to his Corporate website Developed in Core PHP. Since the database for both were different and even on the different server”.
As we know the date and time are used in most of the functions of a project, in some we need to sort data by the creation date and in others, we may have to show date with data, there can be an infinite usage of dates in different formats while developing a program.
So today PHPHurdles is presenting tutorial on PHP DATE and TIME where we will learn to extract or format the date and time in PHP.
As we know Google Reviews are considered as one of the most authenticated tools which have a direct impact on your brand identity. Today we have taken the initiative to educate you on how you can request Google to display your business reviews on your site with help of listed address and an API Key.