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.
Author: <span class="vcard">Deepak Shah</span>
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.
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.
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.
Taking our earlier tutorial JQUERY DATEPICKER RESTRICT DATES IN SECOND DATE FIELD BASED ON SELECTED DATE IN FIRST DATE FIELD as a refrence , we received a lots of comments on it where our fellow developers have situations where they want to disable past dates or upcoming dates from Datepicker.
So today we are here with a Snippet in which we will learn how to disable past dates or upcoming dates in PHP Datepicker.
Hello developers, as being a developer everyday we explore our skills with some new tasks,sometimes it becomes hectic to solve a particular problem or sometimes hard tasks get eliminated with minimal effort,but all in all we face various problems and give our best to conquer those problems.
So today in our tutorial we are here with a short and interesting topic or task which anyone of us can face while development of a project, that is Converting a 2 dimensional Array Into a String Using PHP.
Validating a form is a must for proper and correct input of User.Client-side form validation is very useful for validating a form and it makes our web project more user-friendly.We can found many ways to perform client-side validation in HTML form, but jQuery Validation Plugin is the easiest way to validate a form.
Therefore in today’s tutorial Form Validation using jQuery Validation Plugin we are using jQuery Validation Plugin for validating our Html form.It allows us to implement validation instantly.