next Posted July 12, 2008 Share Posted July 12, 2008 I can't seem to figure out how to display array elements on my page. $result = Database::getAll('CALL entry_preview(100)'); if i use print_r($result) is get the following: Array ( [0] => Array ( [entry_title] => Anti-RSI Typing Aid [CONCAT(LEFT(entry_body, display), '...')] => Well, sorry, System Monitor and Ian... looks like I beat you to it. Update:: replaced ControlGetFoc... ) [1] => Array ( [entry_title] => UNCLE DAVID'S SNIPPETS #1 Graphics - Demo Analog Clock [CONCAT(LEFT(entry_body, display), '...')] => Hi,all Someone asked me recently, as to the limitations of AHK. I said that as far as I know it doe... ) [2] => Array ( [entry_title] => A portable virtual keyboard [CONCAT(LEFT(entry_body, display), '...')] => I started using WordStar and WordMaster text and programming editors, back in the CP/M days (before... ) ) i tried foreach($result as $key => $value) { echo $key . "<br />" . $value . "<br />"; but this isn't working. Please help. Thanks! Link to comment https://forums.phpfreaks.com/topic/114452-solved-having-problems-with-array-loop/ Share on other sites More sharing options...
next Posted July 12, 2008 Author Share Posted July 12, 2008 Sorry for making mess, problem solved. Thanks. Link to comment https://forums.phpfreaks.com/topic/114452-solved-having-problems-with-array-loop/#findComment-588521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.