I need to get all data from the Market plugin on my dashboard.
What is the correct way for this?
I tried:
<php
foreach ($ options ['container_guids'] as $ container_guid) {
$ query = "SELECT * FROM` `WHERE elgg_entities container_guid =". $ container_guid. "subtype = 7 AND";
$result = get_data ($query);
foreach ($ result as $ key => $ product) {
echo '<a href="http://www.mysite.com/market/view/'.$produtos->guid.'"><img width="11%" class="elgg-photo" height="11%" src="http://www.mysite.com/mod/market/thumbnail.php?marketguid='.$produtos->guid.'&size=medium&ut=1340660602"></a>';
}
}
?>
tks
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Cash@costelloc
Cash - 0 likes
- Satheesh PM@thuvalpakshi
Satheesh PM - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
You must log in to post replies.Use Elgg's functions. There are there to make your life easy.
why container_guid is required?
It's not. Cash based his answer on the code you've provided above