Hello everyone I need to fetch rows and display them. This is not a aproblem, but! I have column icon, which contains the url of the icon, so I should display the image from the url. Could you tell me how to display that image?
<?php
global $wpdb;
// this adds the prefix which is set by the user upon instillation of
wordpress
$table_name = $wpdb->prefix . "tablename";
// this will get the data from your table
$retrieve_data = $wpdb->get_results( "SELECT * FROM $table_name" );
?>
<ul>
<?php
foreach ($retrieve_data as $retrieved_data){ ?>
<div class="innerApp">
//THIS IS THE PROBLEMATIC LINE
<img class="appLogo" src="<?php bloginfo('template_url') ?><?php
echo $retrieved_data->icon?>">
<p class="justTextTextApp"><?php echo $retrieved_data->NAME?></p>
<p class="justDescription"><?php echo $retrieved_data->description?>
</p>
</div>
<?php
}
?>
</ul>
$retrieve_data
contain your image url?bloginfo('template_url')
?