php

How to Display Most Popular Posts (Daily)

Submitted by GeePee on
In this project, you will learn how to display most popular posts(daily) and how to display random posts. I have updated my previous project Rating System and View Counter by adding the side bar which displays the Popular Posts(Today) and Random Posts. I also added view_per_day table in MySql for daily views. And as you can see, the posts per page is limited to 5 posts, it's because I put

How To Insert Data in to a MySQLi Database through PHP

Submitted by Yorkiebar on
Introduction: This tutorial will be on allowing users to input data in to an HTML form, and then upload that data to a MySQL database through PHP. HTML: First we need our HTML form. This example will just be for a user to enter their username and email address, we will not do any validation or username checking (to assure no duplicate usernames within our website) as this is not the purpose of this tutorial.

Rating System

Submitted by GeePee on
This is a rating system using jquery and php. The user has an option to choose what rate he/she wants to give on the page. Then, it automatically gets the average page rating. I also used Jrating jquery plugin in creating ajax star rating to configure the corresponding page rate. Hope you learn from this.

Using Base64 Encryption for PHP APIs

Submitted by Yorkiebar on
Introduction: This tutorial is on how to use encryption to transfer data securely, or at least more seucrely than plain text, from a Visual Basic application (or other source) to a PHP API. Why Cryptography? Cryptography should be used for all sensitive information being used in public release applications, or if the data is sent cross-networks.

MD5 in PHP [Why? How? Explained]

Submitted by Yorkiebar on
Introduction This tutorial is on using MD5 encryption in PHP. Why MD5? MD5 is built in to PHP and is only a one way encryption. This means that even if someone was able to gain access to an encrypted md5 string, called an 'MD5 Hash', it is unlikely they would be able to convert the hash back in to the original plain text string. Decryption: Decryption in most cryptography languages essentially work by using the reverse algorithm to the encryption algorithm used by the cryptography method in question.

Uploading POST Data to PHP in Visual Basic.NET

Submitted by Yorkiebar on
Introduction: This tutorial is on how to upload POST data to a PHP file on a web server or localhost through Visual Basic .NET. Why POST? POST is the method used to upload sensitive data such as passwords, as opposed to using the PHP GET method which will simply show all data in the URL bar; GET - http://www.website.com/page.php?password=ThisIsMyGETPassword POST - http://www.website.com/page.php Both example sites would receive the same information, but the POST one is undercover and therefore slightly more secure. Why Only Slightly More Secure?