PHP Machine Test
PHP Machine Test
Test Details:
Server: WAMP
Database Details:
Host : localhost
Username: root
Password: console (For Linux OS)
DB Tool: phpmyadmin
http://localhost/phpmyadmin/
Test Process:
Following are the process and steps for machine test.
i) Create Directory with your name in wamp/www/html/test/your_dir_name and save all
files within it.
Eg : wamp/www/html/test/sachin
ii) Create Mysql Database using phpmyadmin with your name and then create “Members”
table with following fields.
Id INT Auto-increment, Primary Key
CreatedDate DATETIME
Name VARCHAR(50)
iii) Index page: On index page (landing page of your directory) fetch the list of all members
from database that you have created in in step (ii).
a. List should be in HTML UL LI tag format (Tree structure).
b. No Need CSS special effects, Just Basic HTML is fine.
iv) After displaying all members put “Add Member” button just below the members listing.
a. By clicking on “Add Member” button will open popup, Popup must be jquery popup
like (fancybox, lightbox, modal box etc.)
b. Popup contains 2 HTML form fields (Parent [Dropdown], Name [Text Field])
Parent dropdown field should be dynamic and it will have list of all members those
are in your database table.
c. Name field must have client side validation. Like it must accept only string and should
not be empty.
d. On Popup there will be button “Save Changes”. By clicking on this button first it will
validate the form and then send form details to DB using jQuery ajax call. You must
have to use ajax call only for sending form data into database.
v) Last step in process is, once data get submitted into database using ajax and on ajax
success response you have create UL LI tag to append the newly created entry into the
existing tree structure. Also make sure appending the new entry under proper parent
member which you have selected from popup dropdown field.
Also make sure you are not refreshing/reloading page to reflect the result.
Strictly not Permitted to download or install any
application/Software while performing machine test on
computer.