Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
jeece76 Posted January 30, 2016 Posted January 30, 2016 Hi everyone, i'm trying to show database on a custom block in html but i can't do this. {{$livres_db = \IPS\Db::i()->select( '*', 'cms_custom_database_4', '', 'field_11 DESC' );}} {{$livres = array();}} {{foreach $livres as $id => $livre}} {{$idField = $livre::$databaseColumnId;}} {{$livresIds[] = $livre->$idField;}} {{endforeach}} I don't know if I'm on the good way to success. If anybody can help me ^^
Recommended Posts
Archived
This topic is now archived and is closed to further replies.