Re: Am Stuck Need Help

2010-10-08 Thread euromark
1.
nl2br(h($var)) is fine


On 8 Okt., 20:52, Xoubaman  wrote:
> 1. Use nl2br PHP function in the view. You may also take a look at the
> sanitize class to prevent output 
> problems:http://book.cakephp.org/view/1183/Data-Sanitization
>
> 2. In the action use set method (http://book.cakephp.org/view/1031/
> Saving-Your-Data). You can also use a custom SQL query with $this-
>
> >Modelname->query('sql')
>
> 3.http://book.cakephp.org/view/1411/File-Fields. You can save
> image's path or name in your database to access it easily.
>
> On Oct 8, 1:35 pm, tubiz  wrote:
>
> > Please i am working on a CakePHP application and i have some little
> > problem.
> > 1. I am trying to save some text into the database and would like to
> > preserve the backspace as it is when it is displayed.
> > 2. I also want to increase a field in the database table  by one when
> > an action is carried out, please how do i do these
> > 3. How do i upload images using cakephp and display them as well.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Am Stuck Need Help

2010-10-08 Thread Xoubaman
1. Use nl2br PHP function in the view. You may also take a look at the
sanitize class to prevent output problems: 
http://book.cakephp.org/view/1183/Data-Sanitization

2. In the action use set method (http://book.cakephp.org/view/1031/
Saving-Your-Data). You can also use a custom SQL query with $this-
>Modelname->query('sql')

3. http://book.cakephp.org/view/1411/File-Fields . You can save
image's path or name in your database to access it easily.


On Oct 8, 1:35 pm, tubiz  wrote:
> Please i am working on a CakePHP application and i have some little
> problem.
> 1. I am trying to save some text into the database and would like to
> preserve the backspace as it is when it is displayed.
> 2. I also want to increase a field in the database table  by one when
> an action is carried out, please how do i do these
> 3. How do i upload images using cakephp and display them as well.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Am Stuck Need Help

2010-10-08 Thread tubiz
Please i am working on a CakePHP application and i have some little
problem.
1. I am trying to save some text into the database and would like to
preserve the backspace as it is when it is displayed.
2. I also want to increase a field in the database table  by one when
an action is carried out, please how do i do these
3. How do i upload images using cakephp and display them as well.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en