Author: ninjazhai
-
Simple PHP Pagination Script to Handle Your Growing Data
[adinserter block=”34″]PHP Pagination is another very important feature when building any web application. When you grow your data, it must not be displayed on a single page – it can cause a browser hang or very long vertical scroll-bar, so in short, it is not good for the user experience. Video Demo Our final output.…
-
Scroll to top of page in JavaScript
Today I’ll show you how to scroll to top of page in JavaScript. There are some friends who asked me how I did this “back to top” feature of our blog. Imagine you scroll down this page, you will see an “up arrow” image on the lower right corner. When you click it, it will…
-
Apache .htaccess RewriteRule Examples with PHP for Clean URLs
[adinserter block=”34″] Our code for today will make your website URLs clean and attractive. Clean URLs are user and SEO friendly, it does not contain any query string like: …page.php?param1=something&id=1111 Thus, giving our users and search engines (like Google) an idea what your link is all about once it was shared to social media or…
-
PHP Shopping Cart Tutorial using Sessions
This post is about PHP Shopping Cart Tutorial using SESSIONS. Previously, we learned how to build a Shopping Cart with PHP & MySQL where we used a MySQL database to store products added to the cart. This time, we will use PHP session variables to store products added to the cart. Final output PHP Shopping…
-
Export Column Data with PhpMyAdmin
Sometimes you would want to export your MySQL data, but on a specific number of columns only. For example, you have a users table that has has more than two columns (firstname, lastname, username, password, etc.) and you only want to export the user’s names and usernames. In short you are exporting only two columns…
-
How To Salt, Hash and Store Passwords Securely?
What is password hashing? It turns a string (of any length) to a fixed length “fingerprint” that cannot be reversed. For example, my password is “i1love2coding3″, when hashed, it can be converted to a 60 character “ytwqwxpbx1oxbfvmpoaafckmat2zkdsjaxs…” which will be stored to the database. RELATED: PHP Login Script with Session Tutorial – Step by Step…
-
Two Example Usage of jQuery On() Method
[adinserter block=”34″]How are you guys? Many friends asks me what is the use of jQuery on() method, where and when can we use it and why is it important. So in this tutorial, I’m going to give you two example situations where we can use the jQuery on() method. By definition, jQuery on() method attaches…
-
PHP Login System Tutorial – Step By Step Guide!
Previously, we learned how to create, read, update and delete database records on our PHP OOP CRUD tutorial. Today we will build a secure and efficient PHP login system with admin features. By utilizing PHP sessions and MySQL database, we will walk you through creating a user-friendly login system that ensures the safety and protection…
-
A Quick Way To Create A Vertical Accordion With jQuery
[adinserter block=”34″]Today we are going to create a vertical accordion from scratch, using jQuery of course! We will have few lines of code that would be easy to understand. I used this code when I was asked to create an accordion for a website’s headlines. So in this example code, we will have: Three headlines,…
-
Dependent Drop Down List Using JavaScript
[adinserter block=”34″] This tutorial will teach you how to make a dynamic and dependent drop down list using JavaScript. We are using PHP and MySQL as well. Example #1 Create index.php Create index.php with the following Basic HTML Code Retrieve ‘Teams’ from database Put the following code between the ‘body’ tags of the previous section.…