How to export data from database to excel sheet using php ?

Discussion in 'Programming/Scripts' started by Prahlad Makwana, Dec 10, 2019.

  1. Hello, Everyone
    I need help. How can i export my database table-data into excel sheet using php ?
    Thank you in advance.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The easiest way is to use phpmyadmin. If you want to code it yourself, then write code to connect to the database, loop trough the database records and then write the result as csv file, csv files can be imported by excel.
     
    Prahlad Makwana likes this.

Share This Page