Hallo @alle
ich habe ein verständnis problem. Ich habe mit FETCH_ASSOC ein multi-array bekommen :
wie kriege ich mit ein foreach function die [id] , [image] und [url]?
Danke!
ich habe ein verständnis problem. Ich habe mit FETCH_ASSOC ein multi-array bekommen :
PHP-Code:
Array (
[0] => Array ( [id] => 1 [image] => mailChimp.jpg [company] => Mail Chimp [url] => http://www.mailchimp.com/ )
[1] => Array ( [id] => 2 [image] => psd2html.jpg [company] => PSD to HTML [url] => http://www.psd2html.com/ )
[2] => Array ( [id] => 3 [image] => themeForest.gif [company] => Theme Forest [url] => http://themeforest.net/ )
[3] => Array ( [id] => 4 [image] => gomedia.jpg [company] => Go Media [url] => http://www.gomedia.us/ )
[4] => Array ( [id] => 5 [image] => siteGrinder.jpg [company] => Site Grinder [url] => http://medialab.com/sitegrinder3/preview/ )
[5] => Array ( [id] => 6 [image] => bestDesigns.jpg [company] => The Best Designs [url] => http://www.thebestdesigns.com/ )
[6] => Array ( [id] => 7 [image] => rapidHTML.png [company] => Rapid HTML [url] => http://www.rapidxhtml.com/ )
[7] => Array ( [id] => 8 [image] => themeLayouts.gif [company] => Theme Layouts [url] => http://www.themelayouts.com/ )
)
Danke!
Kommentar