How can I obtain the parameters in joomla?

Source: Internet
Author: User
How do I obtain the parameters in joomla ??? The data in the images field is: {"image_intro": "images \/image1.jpg", "float_intro": "", "image_intro_alt": "", "image_intro_caption ":"", "image _ How do I obtain the parameters in the joomla document ???
The data in the images field is:
{"Image_intro": "images \/image1.jpg", "float_intro": "", "image_intro_alt": "", "image_intro_caption": "," image_fulltext ":"", "float_fulltext": "", "image_fulltext_alt": "", "image_fulltext_caption ":""}


$ Db = & JFactory: getDBO ();
$ Query = "SELECT * FROM #__ content order by publish_up desc limit 0, 7 ";
$ Db-> setQuery ($ query );
$ Rows = $ db-> loadObjectList ();
Foreach ($ rows as $ row ){
Echo $ row-> images .'
'; // Only the content of the entire field can be displayed.
}


I want to output only the content in image_intro (that is, images/image1.jpg) in the images field. how can I write it ???
Thank you !!!
------ Solution --------------------
$ Json = json_decode ($ row-> images );
Echo $ json-> image_intro;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.