Login system with MySQL and PHP

login system with MySQL and PHP Session. Also, PHP server side validation is used on login and registration to validate user data.Before you begin take a look at the used files and their uses in PHP Login System.user.php – handle database related worksuserAccount.php – handle registration, login, and logout request with User Classindex.php – display login form / … Continue reading Login system with MySQL and PHP


User Login Registration System

User Login Registration System?1. Create a Databese TableIf you are already following from previous article, you should already have database table created. If you don’t have create the table.MySQL123456789CREATE TABLE `user` (  `id` int(11) NOT NULL AUTO_INCREMENT,  `username` varchar(255) NOT NULL,  `email` varchar(255) NOT NULL,  `password` varchar(255) NOT NULL,  `active` tinyint(1) NOT NULL,  PRIMARY KEY (`id`),  UNIQUE KEY `username` (`username`))2. Creating HTML … Continue reading User Login Registration System

C Plus Plus Input/output with files

Input/output with filesC++ provides the following classes to perform output and input of characters to/from files:ofstream: Stream class to write on filesifstream: Stream class to read from filesfstream: Stream class to both read and write from/to files.These classes are derived directly or indirectly from the classes istream and ostream. We have already used objects whose types were these classes: cin is an object … Continue reading C Plus Plus Input/output with files

C Plus Plus Dynamic memory

Dynamic memoryIn the programs seen in previous chapters, all memory needs were determined before program execution by defining the variables needed. But there may be cases where the memory needs of a program can only be determined during runtime. For example, when the memory needed depends on user input. On these cases, programs need to … Continue reading C Plus Plus Dynamic memory