JFactory not found - Joomla! Forum - community, help and support
hi
please me solve this
reason of error
i have form access data file getuser.php .. file contain db query only
fatal error: class 'jfactory' not found in c:\xampp\htdocs\bc22\administrator\getuser.php on line 3
best regards
& happy new year
please me solve this
reason of error
i have form access data file getuser.php .. file contain db query only
fatal error: class 'jfactory' not found in c:\xampp\htdocs\bc22\administrator\getuser.php on line 3
code: select all
<?php
$q=$_get["q"];
$db = jfactory::getdbo();
// create new query object.
$query = $db->getquery(true);
$query->select($db->namequote('product_name'));
$query->from('#__virtuemart_products_en_gb');
$query->where($db->namequote('virtuemart_product_id').' = '.$db->quote($q));
$db->setquery($query);
$result = $db->loadresult();
echo "<tr>";
echo "<td>" . $result['product_name'] . "</td>";
echo "</tr>";
?>
best regards
& happy new year
i think because getuser.php not within joomla archiecture can't access jfactory class. have careful how include helper files.
this might viewtopic.php?p=1627928
this might viewtopic.php?p=1627928
Comments
Post a Comment