execute sql query via URL

2011-11-18
2013-06-06
  • Hi all,
    I was wondering if it would be possible to execute a specific sql query via a URL, which will send to query to adminer and then display the results (via the usual adminer UI).  I know I can do this via the adminer editor's sql command form, but I would like to have a web page with pre-defined SQL queries which the user can run simply by clicking on the URLs.

    Any information about this or ideas on how I can implement this would be greatly appreciated.

    Thanks!!
      Andre

     
  • Jakub Vrána
    Jakub Vrána
    2011-12-22

    Executing unrestricted SQL command through GET request is dangerous. I would recommend creating views and linking to them.