How To Select Data from a MySQL Table in PHP
Introduction:
This tutorial is on how to list data from a MySQL table.
HTML:
Before we begin, we are going to create some basic HTML code to correctly format our information we will be listing later.
Data Structures in C++
Data structures is a way to organize information so that we can find, update, add, and delete portions of it efficiently.
How to Display Most Popular Posts (Daily)
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
Quick Prime Number Test - Method: Basic
With prime numbers, we always get a headache. We will see 2 tutorials about quick prime number testing, this one at a basic level, the next one at an advanced level.
The idea of our test is the following: We create an array of bool values, to represent numbers like this:
0 - FALSE
1 - FALSE
2 - TRUE
3 - TRUE
4 - FALSE
5 - TRUE
6 - FALSE
7 - TRUE
8 - FALSE
9 - FALSE
10 - FALSE
11 - TRUE
And so forth! Where we have TRUE, it is a prime number, where we have FALSE, it is not a prime number.
How To Insert Data in to a MySQLi Database through PHP
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.
Factorize Number with Vector and Pair
We'll see how you can factorize a natural number, using vector and pair from the C++ STL!
First, you need the following declarations:
- #include <iostream>
Very Simple and Efficient Student Database
The next project will demonstrate advantages of C++, such as:
- using typedef
- using the #define directive
- using simple, short source code to handle apparently large tasks
- easy to read code, if you develop your simple programming style
The task we are going to accomplish is a simple and efficient student database. Although we have put some amounts (limitations), these can be changed very easily! Furthermore, for the simplicity of the tutorial we only used cin to read data.
C++ Class for Complex Numbers with Demo Application
Today, we will see a real and simple C++ class for complex numbers.
jQuery Tabs
This project will teach you how to create a simple jquery tabs using jquery and css. I used fragment identifier this.hash for the href values in the navigation. this.hash is equivalent to #about, #faqs and #contact. By clicking each tab, the older vissible tab will be hidden and the new tab will show. Hope you learn from this.