[Solved] display single value of php array

echo $form->data[‘Itemid’]; Or if you mean inside the foreach loop (because you’ve got other stuff to do there), then use this: foreach($form->data as $key => $value) { if( $key === ‘Itemid’ ) echo $form->data[‘Itemid’]; } 2 solved display single value of php array

[Solved] Using JFactory::getDocument in Joomla 3.0 with jQuery

Try using the following: <?php $document = JFactory::getDocument(); $js=” (function($) { $(document).ready(function(){ $(“a”).click(function(event){ alert(“As you can see, the link no longer took you to jquery.com”); event.preventDefault(); }); }); })(jQuery);”; $document->addScriptDeclaration($js); ?> Hope this helps 1 solved Using JFactory::getDocument in Joomla 3.0 with jQuery

[Solved] My Joomla site crashes with this error SQL code [closed]

Warning: Invalid argument supplied for foreach() You should check that what you are passing to foreach is an array by using the is_array function If you are not sure it’s going to be an array you can always check using the following PHP example code: if (is_array($variable)) { foreach ($variable as $item) { //do something … Read more