Display a MYSQL field using CAKE

Posted by adam on Stack Overflow See other posts from Stack Overflow or by adam
Published on 2010-05-15T19:48:42Z Indexed on 2010/05/15 19:54 UTC
Read the original article Hit count: 272

Filed under:
|

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'); } ?>

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about mysql