Jump to content

[SOLVED] having problems with array loop


next

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.