#Xampp install on dropbox code#
So if the data is inserted into the the database you will have the following window otherwise it will display an error message:.After inserting the data in the index.php file click the AddEmployees button we will be navigated to the process.php file.ScreenShot of Notepad++ window is shown below :.So add the given code in the process.php file.Now to display the content in the browser, we have to add code that will check the if added condition :.Now check your created employee table in the database in the phpmyadmin pannel :.If you run the process.php file it will display the blank window which means your data has been inserted into the database.So add the data and click the Add Employee button :.After creating the database connection, run the index.php file insert the data into it, this data will get added into your database which is present in the phpmyadmin of the Xampp.You will have the following view of your Notepad++ window :.Now to show all the data fields present in the html form, replace the code of process.php file with the given code :.Note: It will display only FirstName and Email(As we have mentioned only the first name and email in the code). Now when you run the process.php file, the data that you had inserted in the html form will get displayed.
So you will have the following view of your Notepad++ window :.Now to have a view of the inserted data just create a new file called as process.php in the same addemp folder.Now to run your program enter the following url in the browser and you will have the following output :.Now go to xampp control pannel and start the Apache and MySQL modules.The screenshots for Notepad++ window are shown below :.Now for designing a form write the given code in index.php file.In this addemp folder create a new file say index.php and open it with Notepad++ or any other text editor.Create a new folder say addemp in the htdocs folder.Install the Xampp server in your machine and if it already installed just go to xampp -> htdocs folder.
To design the html form follow the steps given below :.In this session we will design an html form ,add the data into it and submit it to the database by connecting it to MySQL database using php.