Data type and pointer in C++

C++ supports various types of data types, which is categorized into built-in type, derived-type, and user-defined type. Size specifies what type of data or how much memory of that type of value requires.From this, it is clear that for representing various types of data on the computer it is, indeed, necessary to have different datatypes. We know that every datatype has specific size, that is, char has size of 1 byte, integer has 2 byte float has 4 byte and so on. But, the size depends on machine architecture(32-bit, 64-bit)too. Yes, if you declare an integer variable the size would be 2-byte(on a 32-bit machine) and 4-byte(on a 64-bit machine). Same is the case with pointer variable, any type you declare as a pointer it got the memory space depend on the machine. And all the pointer would be of the same size.
Now, see the code

Registration Form using PHP and MySQL

Part 2- Storing form data into the database

In Part 1, you see how to perform a simple form validation using PHP. This is the continuation of the Part 1-Form Validation. After filling the form field, user clicks the submit button. PHP validates form and transfer user entered data to database and redirect the user to a greeting page. For this, we need to create a database using MySQL.
Let's create the database. You must have WAMP in your system. Start the WAMP and, go to phpmyadmin page, login with your credentials.
Then click new on left top. See this image
Now give the database a name and click create. Next create table by entering the table name in the field provided and select number of column you need in your table and click GO. Now in the next page enter column name, Type,Length,etc and click save

Form validation and Registration using PHP MySQL

Part 1: Form Validation

A simple and basic Registration form with necessary(limited) validations. Developed using HTML,PHP and MySQL. PHP used for validating and processing/storing user entered data. Tools used for this project are notepad and WAMP.
Initialy, a simple registration form with five fields is created using HTML <form> tag. See the image of the Registration form.
HTML code: