Exercise on PHP MySQL

  1. Create one table with header row with primary class ( boostrap ).
  2. Add ten rows with alternating background colours ( use bootstrap )
  3. Using PHP or any other language generate 10 rows of data using loop. ( use for loop in PHP )
  4. Check that each row of data shows one serial number and this number is incremented within the loop.

Using PHP MySQL database.

  1. Using the above concepts , try to collect ten records from student table and display one record in one row. Each row should have alternate background colour ( bootstrap table class table-striped ) .
  2. Add link to student name and onclick of the link, one page will open and it will allow you to update the mark obtained by student. Use the student id in GET method to pass the unique id to edit page.
  3. Add a link for each record to delete the record from the table. It will ask for confirmation message before deleting the record.
  4. Create a page to add a new student record to table. ( use four input fields to add name, class, mark and sex )
  5. Change the class field to dropdown list to select the class.
  6. Change the sex field to radio button to select Male or Female.
  7. Add all validation at backend to show error message if any input is wrong.


Back to PHP MySQL


plus2net.com







Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer