Author: Codereplica

Any website owner or company must make the best provider of website hosting a priority. Your website’s data, graphics, and content must be stored and managed by a website hosting company in order for it to be available and load quickly for visitors. List of Best Hosting Providers for websites – 2023 There are many website hosting provider with best features and price. Best Web Hosting Providers Bluehost Popular website host Bluehost offers cost-effective and dependable hosting packages for both individuals and companies. Their plans come with a free domain name, SSL certificate, and a website builder. Bluehost offers 24/7…

Read More

Are you bored from traditional windows scrollbar or any section scrollbar design/style? Let’s try some different style and experiment with scrollbar styles by just using CSS. In the above animation you can see that how the by default scroller looks like, it’s may be your browser scroller or any scroll section in your website. But with the help of CSS we can modify the styling of scroll bar. Yes, just by using a few line of css you can modify the style of scroll bar. Let’s see those few lines of code – ::-webkit-scrollbar { width: 10px; /* this will…

Read More

Codeigniter is a PHP framework based on MVC(Modal-View-Controller) design pattern. MVC design pattern separate the data and business logic (modal) from the presentation(view). In MVC , M stands for Modal which deals with all the database operations(CURD) such as insert, read, update and delete. And V stands for View, which is responsible for presentation or front-end layout/template. And C stands for Controller, it mediates between Modal and View. Codeigniter 3 already comes with MVC pattern, we don’t need to do any special setup or configuration to write our codes in this pattern. But today i’ll show you more manageable way…

Read More

As you already know commands are how much important for magento 2.If you go through the official magento 2 command list document, you’ll find there is huge list of commands. So today i’ll share here the most important magento 2 commands, which you must have to know before developing a website/platform/extension with magento 2. But before going to the command list ,I would like to say you must have little knowledge about SSH/CLI, because if you are on live server you have to login SSH/CLI with root access to run these commands, but if you are on local server (xampp/wamp/mamp)…

Read More

Responsive Web Design is also known as RWD, may be you heard already this name. Now a days RWD is in high demand, every website wants their website should be a responsive for all device or else user experience will become very worst especially in terms of mobile browsing. So, the question is how you achieve this? You can achieve this by using of CSS Media Query. Media query is introduced in CSS3 , it is a new technique to write your style code for targeted screen or device. It start with @media to make a css block for your css properties and…

Read More

Magento is a ready to use e-commerce platform built on open source technology PHP which has all major in-built functionality for online store such as product catalog, cart, coupon, cms pages, user registration and login and payment gateway etc. Magento is one of the most favorite e-commerce platform on internet. No doubts it’s best platform but some time you get annoying error which just come you don’t have any idea how it’s came , what i did wrong?A same type of experience i also get during working on it, may be you also get the same error that’s why you…

Read More

An array can stores multiple value in a single variable. There different types of array in PHP such as single dimensional and multi dimensional array. To sorting an array there are in-built function is also available but today we are going to remove duplicate pair from an array without using of in-built functions.This example will help you in many practical case where you have to remove duplicate pairs from your response/array. Here we are taking an array with some value.As you can see in below code ‘$inputArr2’ has some duplicate pairs such as “D,C” and “C,D”, so basically we are…

Read More

In PHP there is a function available for get date and time that is date(format, timestamp) function.Let’s see the parameter format & timestamp in details – ParameterDescriptionformatRequired. Specifies the format of the outputted date string. The following characters can be used: d – The day of the month (from 01 to 31) D – A textual representation of a day (three letters) m – A numeric representation of a month (from 01 to 12) M – A short textual representation of a month (three letters) Y – A four digit representation of a year y – A two digit…

Read More

It’s happened most of time, as i’m not only who face this problem “a duplicate rows”.So what’s you do when you find that your database has lots of duplicate eateries.How you filter them ?How you delete them ?No idea, let’s try this to today.First i’ll try to find duplicate rows.Let’s suppose there is ‘users’ table in database which has lot’s of duplicate values. +—-+——–+——+——– | id | name | email | +—-+——–+——+——– | 1 | san | san@gmail.com | | 2 | joe | joe@gmail.com | | 3 | san | san@gmail.com | | 4 | san | deago@gmail.com |…

Read More

MySQL is an open-source relational database management system.Its name is a combination of “My”, the name of co-founder Michael Widenius’s daughter, and “SQL”, the abbreviation for Structured Query Language. Let’s see the query how we get the all employee name having 2nd highest salary in the organization. First let’s suppose there is “Emp” table where employee records are stored. +—-+——–+—— | id | name | salary | +—-+——–+——- | 1 | avi | 10000 | | 2 | saas | 20000 | | 3 | jhon | 30000 | | 4 | deo | 20000 | | 5 | san…

Read More