I have win 11 pro and live in UK and I can use it. I asked it for php code to access the J5 db and got this;
<?php
defined('_JEXEC') or die('Restricted Access');
use Joomla\\CMS\\Factory;
$db = Factory::getDbo();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('column1', 'column2')))
->from($db->quoteName('#__table_name'))
->where($db->quoteName('column3') . ' = ' . $db->quote('value'));
$db->setQuery($query);
$results = $db->loadObjectList();
?>
<?php
defined('_JEXEC') or die('Restricted Access');
use Joomla\\CMS\\Factory;
$db = Factory::getDbo();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('column1', 'column2')))
->from($db->quoteName('#__table_name'))
->where($db->quoteName('column3') . ' = ' . $db->quote('value'));
$db->setQuery($query);
$results = $db->loadObjectList();
?>
Statistics: Posted by gws — Mon Jan 15, 2024 12:25 pm