I am going to retrieve some data from database and display it in php file.
It seems like it can connect to my localhost's database,because code like:
<?php foreach($goods as item ):?>
haven't occur any errors.
but when it comes to the codes like,
<?php echo $item->logo;?>
on my browser, it simply display
logo;?>
what's wrong with my codes or setting. As the file is quite big and I think the system config problem(I have reinstalled wampserver), I just show a little bit my code:
<?php echo sizeof($goods);?>
<td class="td_f"><a href="" target="_blank"><IMG src="http://127.0.0.1:8020/UB_real//public/photos/frontimg/<?php echo $item->logo?>"> </a></td>
<?php endforeach; ?>