Sie sind auf Seite 1von 8

BUILDING THE "ENTRANCE EXAM TEST TAKER".

TECHNOLOGIES USED: HTML, CSS, JAVASCRIPT, AZAX, PHP, MySQL SERVER, WAMPSERVER. STRATEGY: 1. SHOULD WORK AS A STAND ALONE APPLICATION USING WAMPSERVER IN THE B ACKGROUND. 2. SHOULD LATTER ON BE UPLOADABLE TO A WEBSITE AND WORK PROPERLY. PROCEDURE: VERSION 1.1 1. Make a Test_Taker.html form in HTML using Kompozer. 2. On the Form there should be a question followed by four choices. A radio button should be there on the left of each of the choices. A Next Command Button is to be made to navigate to the next question. A Previous Command Button is to be made to navigate to the previous ques tion. 3. Start Wampserver. 4. Make a MySQL database named Entrance_Exam. Make only one table named Question s. 5. The table should have 7 columns: Question_Number, Question, Choice_A, Choice _B, Choice_C, Choice_D, Answer. 6. Populate the table with 5 questions. 7. Make a Test_Taker.html.php page which talks with the HTML Form and the MySQL Database. 8. Write code for the Next and Previous Command Buttons in the PHP page. 9. Test the HTML Form.

VERSION 1.2 1. On the top of the form, links available are: PMT. ww.W3SCHOOLS.COM . Try to follow design of w

VERSION 1.3 1. On the left hand side of the form, relevant subjects along with chapters of e ach subject should be displayed. 2. On clicking a link on the left of the page, questions from that particular ch apter should only be displayed.

VERSION 2.1 1. Add links on the top of the form: AIIMS, AIEEE, OJEE, IIT. 2. On clicking a link on the top of the page, the left hand links should change dynamically.

VERSION 2.2 1. Make a CSS style sheet to give the web page a standard look with the logo of Vidya Coaching Centre. Version 2.3 1. Give marks to the test taker. Correct answer gets 4 marks and wrong answer ge ts -1. The test taker should be able to view his total marks achieved against th e total marks attempted.

Version 2.4 1. Register a New User. 2. Make database to save new user name and password. 3. Make arrangements to make the user Login.

Version 2.5 1. Try to remember the marks of the registered user.

Version 2.6 1. Give the user the option to give a test containing questions whose answers we re not provided correctly by the user in the previously.

Version 3.1 1. Automatically send the results of the test given by the user to his email add ress.

Version 3.2 1. At the bottom of the page, give references of books including page numbers wh ere one can refer to in case of doubts in that question. 2. Give Links to the books, or URL where more information can be had regarding t hat question.

********************************** DOWNLOAD MySQL SERVER AND INSTALL IT TO YOUR COMPUTER ***************************************************************

1. REFERENCE: Build Your Own Database-Driven Website Using PHP & MySQL by Kev in Yank ISBN:0957921810 SitePoint 2003 (275 pages) This book is a hands-on guide to learning all the tools, principles, and techniq ues needed to build a fully functional database-driven Web site using PHP and My SQL from scratch. 2. Windows Installation \\\\\\\\\\ Installing MySQL \\\\\\\\\\

As I mentioned above, MySQL may be downloaded free of charge. Simply proceed to http://www.mysql.com/downloads/ and choose the recommended stable release (as of this writing, it is MySQL 3.23). On the MySQL 3.23 download page, under the hea ding of Windows downloads, click the Download link next to the latest version of MySQL (3.23.54 as of this writing). After downloading the file (it's about 13MB as of this writing), unzip it and run the setup.exe program contained therein. Once installed, MySQL is ready to roll (barring a couple of configuration tasks that we'll look at shortly), except for one minor issue that only affects you if you're running Windows NT, 2000, XP, or .NET Server. If you use any of those op erating systems, find a file called my-small.cnf in the directory to which you j ust installed MySQL. Copy it to the root of your C: drive and rename it to my.cn f. See the following sidebar if you have any trouble working with .cnf files on your Windows system. Working with .cnf files in Windows. It just so happens that files ending in .cnf have a special meaning to Windows, so even if you have Windows configured to show file extensions, the my-small.cnf file will still appear as simply my-small with a special icon. Windows actually expects these files to contain SpeedDial links for Microsoft NetMeeting. Assumi ng you don't use NetMeeting (or at least you don't use its SpeedDial facility) y ou can remove this file type from your system, enabling you to work with these f iles normally: Open the Windows Registry Editor (in WinNT/2000/XP/.NET, click St art, Run..., and then type regedt32.exe to launch it, in Win9x/ME run regedit.ex e instead). 1. Navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\Classes branch of the registry, w here you'll find a list of all the registered file types on the system. 2. Select the .cnf key and choose Edit, Delete from the 3. menu to remove it. 4. Log out and log back in, or restart Windows for the change to take effect. If you prefer not to mess with the file types on your system, however, you shoul d still be able to open the files in Notepad to edit them and you can rename it to my.cnf by renaming the SpeedDial link icon to my (Windows will maintain the . cnf extension automatically). If you don't like the idea of a MySQL configuration file sitting in the root of your C: drive, you can instead name it my.ini and put it in your Windows directo ry (e.g. D:\WINDOWS or D:\WINNT if Windows is installed on drive D:). Whichever you choose, open the file in Notepad and look for the following lines: #basedir = d:/mysql/ #datadir = d:/mysql/data/ Uncomment these lines by removing the # symbol at the start, and change the path s to point to your MySQL installation directory, using slashes (/) instead of ba ckslashes (\). For instance, I changed the lines on my system to read as follows : basedir = d:/Program Files/MySQL/ datadir = d:/Program Files/MySQL/data/

With that change made, save the file and close Notepad. MySQL will now run on yo ur Windows NT/2000/XP system! If you're using Windows 95/98/ME, this step is not necessary MySQL will run just fine as-installed. Just like your Web server, MySQL is a program that should be run in the backgrou nd so that it may respond to requests for information at any time. The server pr ogram may be found in the bin subfolder of the folder into which you installed M ySQL. To make things complicated, however, there are actually several versions o f the MySQL server to choose from: mysqld.exe This is the basic version of MySQL if you run Windows 95, 98, or ME. It includes support for all advanced features, and includes debug code to provid e additional information in the case of a crash (if your system is set up to deb ug programs). As a result of this code, however, the server might run a little s low, and I've generally found that MySQL is so stable that crashes aren't really a concern. mysqld-opt.exe This version of the server lacks a few of the advanced features o f the basic server, and does not include the debug code. It's optimized to run q uickly on today's processors. For beginners, the advanced features are not a big concern. You certainly won't be using them while you complete the tasks in this book. This is the version of choice for beginners running Windows 95, 98, or ME . mysqld-nt.exe This version of the server is compiled and optimized like mysqld-o pt, but is designed to run under Windows NT/2000/XP/.NET as a service. If you're using any of those operating systems, this is probably the server for you. mysq ld-max.exe This version is like mysqld-opt, but contains advanced features that support transactions. mysqld-max-nt.exe This version's similar to mysqld-nt, but has adv anced features that support transactions. All these versions were installed for you in the bin directory. If you're runnin g on Win98x/ME I recommend sticking with mysql-opt for now move to mysqld-max if y ou ever need the advanced features. On Windows NT/2000/XP/.NET, mysqld-nt is my recommendation. Upgrade to mysqld-max-nt when you need more advanced features. Starting MySQL is also a little different under WinNT/2000/XP/.NET, but this tim e let's start with the procedure for Win95/98/ME. Open an MS-DOS Command Prompt[ 2] and proceed to the MySQL bin directory, and run your chosen server program: C:\mysql\bin>mysqld-opt Don't be surprised when you receive another command prompt. This command launche s the server program so that it runs in the background, even after you close the command prompt. If you press Ctrl-Alt- Del to pull up the task list, you should see the MySQL server listed as one of the tasks that's active on your system. To ensure that the server is started whenever Windows starts, you might want to create a short cut to the program and put it in your Startup folder. This is jus t like creating a short cut to any other program on your system. On WinNT/2000/XP/.NET, you must install MySQL as a system service. Fortunately, this is very easy to do. Simply open a Command Prompt (under Accessories in the Start Menu) and run your chosen server program with the --install option: C:\mysql\bin>mysqld-nt --instal l Service successfully installed. This will install MySQL as a service that will b e started the next time you reboot Windows. To manually start MySQL without havi ng to reboot, just type this command (which can be run from any directory): C:

\>net start mysql The MySQL service is starting. The MySQL service was started successfully. To verify that the MySQL server is running properly, press Ctrl-Alt-Del and open the Task List. If all is well, the server program should be listed on the Proce sses tab. ------------------------------------------------------------------------------------------------------------------------------------------------------------------************ DOWNLOAD MySQL SERVER AND INSTALL IT TO YOUR COMPUTER *********** ************ ACTUAL PROCEDURE ON D.NAYAK'S COMPUTER *************************** 1. Log into the computer as an Administrator. 2. MySQL can be downloaded free of charge. Go to http://www.mysql.com/download s/ 3. Download the free MySQL Server Community Edition. Download a version that in cludes a Windows Installer. If not sure see next point. 4. If you re not sure which version to select, download MySQL Installer for Windo ws. 5. Unzip the downloaded file. 6. Double-click Setup.exe . This initiates the setup process. 7.

3. Follow the steps given in this page: http://www.wikihow.com/Install-the-MyS QL-Database-Server-on-Your-Windows-PC 3. choose the recommended stable release (as of this writing, it is MySQL 3.23) . 4. On the MySQL 3.23 download page, under the heading of Windows downloads, cli ck the Download link next to the latest version of MySQL (3.23.54 as of this wri ting). 5. After downloading the file (it's about 13MB as of this writing), unzi p it and run the setup.exe program contained therein. 6. Once installed, MySQL is ready to roll (barring a couple of configuration ta sks that we'll look at shortly), except for one minor issue that only affects yo u if you're running Windows NT, 2000, XP, or .NET Server. 7. If you use any of those operating systems, find a file called my-small.cnf i n the directory to which you just installed MySQL. 8. Copy it to the root of your C: drive and rename it to my.cnf. See the following sidebar if you have any trouble working with .cnf files on you r Windows system. Working with .cnf files in Windows.

It just so happens that files ending in .cnf have a special meaning to Windows, so even if you have Windows configured to show file extensions, the my-small.cnf

file will still appear as simply my-small with a special icon. Windows actually expects these files to contain SpeedDial links for Microsoft NetMeeting. Assumi ng you don't use NetMeeting (or at least you don't use its SpeedDial facility) y ou can remove this file type from your system, enabling you to work with these f iles normally: Open the Windows Registry Editor (in WinNT/2000/XP/.NET, click St art, Run..., and then type regedt32.exe to launch it, in Win9x/ME run regedit.ex e instead). 1. Navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\Classes branch of the registry, w here you'll find a list of all the registered file types on the system. 2. Select the .cnf key and choose Edit, Delete from the 3. menu to remove it. 4. Log out and log back in, or restart Windows for the change to take effect. If you prefer not to mess with the file types on your system, however, you shoul d still be able to open the files in Notepad to edit them and you can rename it to my.cnf by renaming the SpeedDial link icon to my (Windows will maintain the . cnf extension automatically). If you don't like the idea of a MySQL configuration file sitting in the root of your C: drive, you can instead name it my.ini and put it in your Windows directo ry (e.g. D:\WINDOWS or D:\WINNT if Windows is installed on drive D:). Whichever you choose, open the file in Notepad and look for the following lines: #basedir = d:/mysql/ #datadir = d:/mysql/data/ Uncomment these lines by removing the # symbol at the start, and change the path s to point to your MySQL installation directory, using slashes (/) instead of ba ckslashes (\). For instance, I changed the lines on my system to read as follows : basedir = d:/Program Files/MySQL/ datadir = d:/Program Files/MySQL/data/ With that change made, save the file and close Notepad. MySQL will now run on yo ur Windows NT/2000/XP system! If you're using Windows 95/98/ME, this step is not necessary MySQL will run just fine as-installed. Just like your Web server, MySQL is a program that should be run in the backgrou nd so that it may respond to requests for information at any time. The server pr ogram may be found in the bin subfolder of the folder into which you installed M ySQL. To make things complicated, however, there are actually several versions o f the MySQL server to choose from: mysqld.exe This is the basic version of MySQL if you run Windows 95, 98, or ME. It includes support for all advanced features, and includes debug code to provid e additional information in the case of a crash (if your system is set up to deb ug programs). As a result of this code, however, the server might run a little s low, and I've generally found that MySQL is so stable that crashes aren't really a concern. mysqld-opt.exe This version of the server lacks a few of the advanced features o f the basic server, and does not include the debug code. It's optimized to run q uickly on today's processors. For beginners, the advanced features are not a big concern. You certainly won't be using them while you complete the tasks in this book. This is the version of choice for beginners running Windows 95, 98, or ME . mysqld-nt.exe This version of the server is compiled and optimized like mysqld-o

pt, but is designed to run under Windows NT/2000/XP/.NET as a service. If you're using any of those operating systems, this is probably the server for you. mysq ld-max.exe This version is like mysqld-opt, but contains advanced features that support transactions. mysqld-max-nt.exe This version's similar to mysqld-nt, but has adv anced features that support transactions. All these versions were installed for you in the bin directory. If you're runnin g on Win98x/ME I recommend sticking with mysql-opt for now move to mysqld-max if y ou ever need the advanced features. On Windows NT/2000/XP/.NET, mysqld-nt is my recommendation. Upgrade to mysqld-max-nt when you need more advanced features. Starting MySQL is also a little different under WinNT/2000/XP/.NET, but this tim e let's start with the procedure for Win95/98/ME. Open an MS-DOS Command Prompt[ 2] and proceed to the MySQL bin directory, and run your chosen server program: C:\mysql\bin>mysqld-opt Don't be surprised when you receive another command prompt. This command launche s the server program so that it runs in the background, even after you close the command prompt. If you press Ctrl-Alt- Del to pull up the task list, you should see the MySQL server listed as one of the tasks that's active on your system. To ensure that the server is started whenever Windows starts, you might want to create a short cut to the program and put it in your Startup folder. This is jus t like creating a short cut to any other program on your system. On WinNT/2000/XP/.NET, you must install MySQL as a system service. Fortunately, this is very easy to do. Simply open a Command Prompt (under Accessories in the Start Menu) and run your chosen server program with the --install option: C:\mysql\bin>mysqld-nt --instal l Service successfully installed. This will install MySQL as a service that will b e started the next time you reboot Windows. To manually start MySQL without havi ng to reboot, just type this command (which can be run from any directory): C: \>net start mysql The MySQL service is starting. The MySQL service was started successfully. To verify that the MySQL server is running properly, press Ctrl-Alt-Del and open the Task List. If all is well, the server program should be listed on the Proce sses tab. -------------------------------------------------------------------------------------------------------------------------------------------------------------------

Das könnte Ihnen auch gefallen