I must display one image at any given time on the web page. I made use of a question to obtain a group of images in the database into an assortment. I've attempted along wrinkles:
$my=& JFactory::getUser(); $db=& JFactory::getDBO(); $a=& $my->id; $query="SELECT id FROM jos_phocagallery_categories WHERE accessuserid='$a'"; $db->setQuery($query); $r=$db->loadResult(); $queryc="SELECT filename FROM jos_phocagallery WHERE catid='$r'"; $db->setQuery($queryc); $results=$db->loadResultArray(); $image=current($results); echo 'imgag srx="images/phocagallery/'.$image.'" />';
I transformed echo line above since the line wasn't permitted
Following this code I have attempted to include a port button that calls "next($results)" after which replace $image, however it appears the entire totally beeing implemented right from the start again. And So I can't obtain the pointer from the array to advance. Not really within an echo.
What Shall We Be Held doing wrong?
Regards / Viktor
After some Searching you may even have the ability to locate an exact match.