Wednesday, August 1, 2012

Re: how images stored in database

Hi abiram.
I want to store and retrieve image in database but i cant bcoz i am new to cakephp.
Can you help me.I am doing like this:
To upload an image i m doing this
<?php
echo $this->Form->create('Movie');
echo $this->Form->inputs(array('title', 'genre', 'rating', 'format', 'length'));
echo $this->Form->input('file', array('type' => 'file'));
echo $this->Form->end('Add');
?>
and to show image i m doing like this:
<?php echo $this->Html->image($movie['Movie']['image']); ?>

Am i doing in right way.

On Tuesday, February 12, 2008 3:46:12 PM UTC+5:30, abiram wrote:
Hai i got answer it is images stored in database lke varchar and
retrive time this is like <?php $html->image()  ?>

On Feb 11, 2:39 pm, abiram <hari.k...@gmail.com> wrote:
> Hi all i want store images in database actually images stored in
> webroot img folder in database image path is entering it means only
> img names or overall path and how to retrive viewpage like
> <?php $product['products']['img] ?>
> and what path is save in database pls send answ

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: