PHP | array_push() function We can add elements to an array in an easy way. There is an inbuilt function array_push() in PHP which is used to add elements to the PHP array. With the …

Last updated 8 years, 1 month ago | 2624 views

Tags:- PHP

SQL | Timestamp in where clause to select the date range Select date range from the timestamp column with where clause can be done by using the BETWEEN operator. BETWEEN Operator : The BETWEEN operator selects …

Last updated 6 years, 5 months ago | 2624 views

Tags:- SQL MySQL

CSS | Gradient Text There are three different CSS properties required to add a gradient overlay to a text. background-image: <gradient> background-clip: text text-fill-color: transparent background-image: <gradient> <gradient> will replace with any gradient style which …

Last updated 5 years, 10 months ago | 2611 views

Tags:- CSS

Django | order_by query set, ascending and descending order_by() The order_by function is used to sort the result-set in ascending or descending order. Ascending Order The order_by function sorts the records in ascending order by …

Last updated 5 years, 8 months ago | 2590 views

Tags:- Django

Django | Delete records in Django models Delete query performs an SQL delete query on all rows in the queryset and returns the number of objects deleted and a dictionary with the number of deletions …

Last updated 5 years, 7 months ago | 2581 views

Tags:- Django

Session V/S Cookies A cookie is an array of data stored by the browser on the client location and sent to the server with every request. It stores a limited amount of data about 4kb(i.e.: 4096 …

Last updated 7 years, 6 months ago | 2579 views

Tags:- PHP

Python | New and Override Modifiers The new modifier is used to instruct the compiler to use the new implementation and not the base class function. The Override modifier is useful for overriding a base class …

Last updated 4 years, 4 months ago | 2540 views

Tags:- Python

Jquery | attr | Get HTML attribute's value You can get the value of an attribute for the first element in the set of matched elements using the .attr() function.   Return the value of …

Last updated 6 years, 12 months ago | 2534 views

Tags:- JQuery

Git | git status to check the status of the current branch The git status command displays all the necessary information about the working directory and the staging area. git status It displays information like: …

Last updated 5 years, 8 months ago | 2485 views

Tags:- Git

PHP | :: operator | scope resolution operator This operator is known as the scope resolution operator. And this operator is used to access the static members of the class. To access static members of a …

Last updated 7 years, 6 months ago | 2471 views

Tags:- PHP

SQL | Difference between primary key and unique constraints There is only one primary key in a table. It creates the clustered index automatically and it cannot have NULL value whereas there can be multiple …

Last updated 7 years, 5 months ago | 2458 views

Tags:- SQL MySQL

Git | git checkout to Switch branch Git checkout is mostly used for switching from one branch to another. It is also used to check out files and commits. Switch to a branch This command …

Last updated 5 years, 8 months ago | 2453 views

Tags:- Git