0 6

BIT301 ยท 0 ยท 5 marks

Write a PHP program to connect database and retrieve data from a table and display in a page.

Write a PHP program to connect database and retrieve data from a table and display in a page. [5]

Web Technology IIChapter 8: Database OperationsData retrieval and display

A database collegedb holding a table of students: The script opens the connection, runs a SELECT, and renders the rows into an HTML table. The query text here is fixed, so query() is enough; if the page later filters by something the visitor typed, the statement would be prepared and the value bo...