Question: Write a PHP program in a single webpage considering the following steps. (a) A block of codes to make a connection to a MySQL

Write a PHP program in a single webpage considering the following steps.

Write a PHP program in a single webpage considering the following steps. (a) A block of codes to make a connection to a MySQL database named db_MY using PDO. (2 marks) (b) A block of codes in a form to key in a Malaysian IC Number. (3 marks) (c) (d) A block of codes to extract THREE (3) information from the entered Malaysian IC Number in Q2(b); date of birth, gender and place of birth. Categorize the place of birth into two; Malaysia or Overseas. (10 marks) A block of codes which includes an SQL statement to save the Malaysian IC Number, Birth Date, Gender, Birth Place in a table named MyData in db_MY. (5 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!