VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kratzi on September 04, 2016, 15:10:25 PM

Title: How to add a mysql query into a view
Post by: kratzi on September 04, 2016, 15:10:25 PM
Hi I would like to add a mysql query into the view productdetails and then echo the result within a div. The query should of course get data from the mysql database which is part of the installation.

My question is here if I need to connect to the database form the view by entering the database details or if there is any command how I could avoid entering the database details at this stage.

Thank you

J 3.5.0 V; 3.0.14

Title: Re: How to add a mysql query into a view
Post by: GJC Web Design on September 04, 2016, 21:27:48 PM
https://docs.joomla.org/Selecting_data_using_JDatabase

you can use anywhere within Joomla