简体   繁体   中英

How to select array components from database of joomla 2.5

I have a problem with joomla, when I retrieve multi columns from database content of joomla 2.5, where the columns are "id","introtext","id". I got the output as follow

Array([0] => Array([id]=>1 [introtext]=> lorent ipsum [catid]=> 8) [1] => Array([id]=>2 [introtext]=> lorent ipsum [catid]=>9))

I want to get id's, introtext's, catid's separately with php. Please help me... Thank you

foreach($data as $d){
  echo "id: ".$d['id'];
  echo "introtext: ".$d['introtext'];
  echo "catid: ".$d['catid'];
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM