Hi iam trying to get a query from sql in the form submit page, but the query is not connected to the fom table but from other table.
i was adding custom code in the submit section with this code which is not working !!
so please can i know where is the mistake?
thanks so much in advance
i was adding custom code in the submit section with this code which is not working !!
<?php
$db =& JFactory::getDBO();
$query = "
SELECT *
FROM `#__users`
WHERE id = 42
";
$db->setQuery($query);
echo $query;
?>
so please can i know where is the mistake?
thanks so much in advance