Exercise PHP-MySQL

Select Data

You will use the data base, that you have prepared in the previous exercise.
  • Write a php script that connects to your DB and presents the list of all articles (name, price and category name).
    The solution (source)
  • Update your script such that a link is added with each of the articles (href="yourProgram.php?articleID=3"). If the user clicks on such a link, then the element with ID=3 is displayed in a page.
    The solution (source)
  • Update your script such that the list is displayed in pages of 10 articles, the user can navigate between pages (previous next and number).
    No solution yet, continue to search