Timeline for Join data from session with sql-query and display in module
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 17, 2019 at 20:17 | vote | accept | stckvrw | ||
Apr 30, 2018 at 19:32 | vote | accept | stckvrw | ||
Apr 30, 2018 at 19:32 | |||||
May 28, 2015 at 9:00 | vote | accept | stckvrw | ||
May 28, 2015 at 9:00 | |||||
May 6, 2015 at 3:19 | answer | added | Nagarjun | timeline score: 2 | |
May 5, 2015 at 16:09 | answer | added | stckvrw | timeline score: 0 | |
May 5, 2015 at 15:39 | comment | added | stckvrw | It was your solution by the link joomla.stackexchange.com/a/9510/4042 and it really works if I echo IDs. But why does it not work if I push them to array? | |
May 5, 2015 at 15:34 | comment | added | Lodder |
So that's your answer. 2 is the only ID that is being returned by $result['itemid'] , hence why your database query is only displaying 1 result
|
|
May 5, 2015 at 15:31 | comment | added | stckvrw |
If I use $items = array();foreach ($results as $result){$items[] = $result['itemid'];}return $items; in helper.php and use var_dump($items); in tmpl/default.php I get array(1) { [0]=> string(1) "2" }
|
|
May 5, 2015 at 14:49 | comment | added | Lodder |
Whats happens when you use var_dump($ids); ?
|
|
May 5, 2015 at 14:34 | history | asked | stckvrw | CC BY-SA 3.0 |