YourModel->field(
'field_name',
array('id' => $id)
)
On Fri, Apr 17, 2009 at 5:32 PM, mattalexx <[email protected]> wrote:
>
> Is there any way to recreate something like this?
>
> <?php
> $result = mysql_query('SELECT single_field FROM table WHERE id = 1
> LIMIT 1');
> $single_field_value_of_record_1 = mysql_result($result, 0,
> 'single_field');
> ?>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---