0% found this document useful (0 votes)
396 views

PHP Machine Test

The document outlines a PHP/MySQL test to assess technical skills. It involves: 1) Creating a database table to store member records with fields like ID, date, name, parent ID. 2) Developing an index page that displays the member records in a tree structure and allows adding new members via a jQuery popup form. 3) The form should allow selecting an existing parent and adding a new name, with client-side validation. 4) Submitting the form data via AJAX to insert a new record and append it to the tree without refreshing the page. The test is estimated to take 1-3 hours and mandatory requirements include OOP, recursion, jQuery, and P

Uploaded by

Numair Antule
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
396 views

PHP Machine Test

The document outlines a PHP/MySQL test to assess technical skills. It involves: 1) Creating a database table to store member records with fields like ID, date, name, parent ID. 2) Developing an index page that displays the member records in a tree structure and allows adding new members via a jQuery popup form. 3) The form should allow selecting an existing parent and adding a new name, with client-side validation. 4) Submitting the form data via AJAX to insert a new record and append it to the tree without refreshing the page. The test is estimated to take 1-3 hours and mandatory requirements include OOP, recursion, jQuery, and P

Uploaded by

Numair Antule
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

The following test is designed to judge:

1) Your ability to read and understand from the specs.


2) Your ability to deliver on the functionality including the exhaustiveness of your testing.
3) Your technical capability and efficiency. The task should take anywhere between 1 - 3 hours for
you to complete and hand it over to us for review.
Notes:
i) Mandatory to use PHP OOP’s concept.
ii) Mandatory to use recursive function for listing records.
iii) Mandatory to use jQuery append on record insert.
iv) Use PHP PDO.

Test Details:

Server: WAMP
Database Details:
Host : localhost
Username: root
Password: console (For Linux OS)

Password: (blank) (For WindowsOS)

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)

ParentId INT Foreign key for same Table

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.

You might also like