Display a MYSQL field using CAKE
- by adam
Forgive me if this is a "homework" question. We have a "Rating" table in our mysql db. I want to display this number on our user profile page. JUST BELOW THE GRAVATAR. here is the code in app/views/user/view.ctp
<div class="nhplft">
flash(); ?
?d=identicon&s=100" border="0" alt="My Avatar! UID:" /
Change Image
link("Home",'/items'); ?
|
link('Add',array('controller' = 'items','action'='add')); ? |
link('Search',array('controller'='items','action'='index')); ?
|
link("Logout",'/users/logout'); } ?