Quick Prime Number Test - Method: Basic

Submitted by DoctorSpeedCode on
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

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.

Very Simple and Efficient Student Database

Submitted by DoctorSpeedCode on
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.

jQuery Tabs

Submitted by GeePee on
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.

Functions in Java

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create and use methods in Java. What's a Method: A method is similar to what you may call a function in other languages. Well, actually, it's exactly the same. A function, or a method, is a script which can be called from other scripts in order to run some code, and return a value. The only difference between a function and a method, is that methods are the name given to functions in an Object Oriented Programming (OOP) language, such as Java.

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.

Exception Handling in C++

Submitted by moazkhan on

Exception Handling in C++

In this part you will learn: 1. What is an exception? 2. How using exception is useful? 3. How to use exception in a Program? 4. C++ syntax What is exception? In a class there arise many errors, depending upon the type of program handling these errors can be critically important sometimes. Exceptions is the way through which we handle the errors in a class using object oriented approach. Exceptions can occur due to many reasons like if the system has run out of memory or the object is initialized to impossible values.

How To Build a Stub in Visual Basic .NET

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a stub in Visual Basic .NET. Builder: This is a follow on tutorial from my previous tutorial on how to create a builder in Visual Basic .NET which allows a user to input custom settings to their liking in to an application (the builder) which will then put those settings via the controls (textbox and checkbox in that example) in to the generated stub.