Skip to main content

Posts

Showing posts from March, 2018

Array in PHP

Types of Array in PHP An Array is assigned to be a single variable , but can hold dozens of individual piecies of information. Types of Array 1. Numeric Array 2. Associative Array 3. Multidimensional Array 1.       Numeric Array In numeric array have to create only elements, id will be automatically assign to the element. Example: <?php              $a   =   array ( "a" , "b" , "c" );   print_r ( $a ); ?> Output: Array([0]=>a [1] => b [2]=> c) 2.       Associative Array This kind array have id and elements both are created Example : <?php $a   =   array ( "1" => "a" , "2" => "b" , "3" => "c" );      print_r ( $a ); ?> Output : Array([1]=>a [2] => b [3]=> c) Note : The above out in...

How to register in php(Sign up form in php)

How to register in php(Sign up form in php) Basically in register form is register by email, mobile number, username etc. The purpose of register(sign up) to add the user in system who get the benefits of system(Application).The logic of register(sign up) is no duplicate users allowed in application with form validation.Password and Confirm password input must be same.below are steps to develop sign up (register) in the Application. Steps: 1. Create Database CREATE   TABLE  IF  NOT   EXISTS   ` users `  ( ` id `   int ( 11 )  NOT   NULL ,    ` first_name `   varchar ( 200 )  NOT   NULL ,    ` last_name `   varchar ( 200 )  NOT   NULL ,    ` email `   varchar ( 100 )  NOT   NULL ,    ` password `   varchar ( 100 )  NOT   NULL ,    ` status `   varchar ( 50 )  NOT   NULL , ...