Hi, I want create a front end that allows to me display the values of three differents tables.
Rigth now, I have a little piece of code that allows me display the value of two differents tables.
$kiosk_id = JRequest::getInt('id');
$db = $this->getDbo();
$query = $db->getQuery(true);
$query->select('t.*, a.box_id, a.box_date_connection, a.box_date_storage, a.box_obs, a.box_version, a.box_version_date, a.box_placa_mennekes, a.box_keyboard_version, a.box_downgrade_CPU, a.box_IP');
$query->from('#__carregadores_kiosks AS t');
$query->join('LEFT', '#__carregadores_boxs AS a USING(box_id)');
$query->where("t.kiosk_id = '{$kiosk_id}'");
$db->setQuery($query);
$row = $db->loadObject();
What are the changes that I must do for that can display the values of three different table?
My three differents tables are: #__carregadores_kiosks
#__carregadores_boxs
#__carregadores_pens
I try do the following change but without any positive results
$query->join('LEFT', '#__carregadores_boxs AND #__carregadores_pens AS a USING(box_id, pen_id)');
Any one know what I must do?
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit
https://groups.google.com/d/msg/joomla-dev-general/-/A7DeGxjeeWIJ.
To post to this group, send an email to
joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to
joomla-dev-gene...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/joomla-dev-general?hl=en-GB.