Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7725167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:52:19+00:00 2026-06-01T04:52:19+00:00

I am getting the following error when try to save. SQL Query: INSERT INTO

  • 0

I am getting the following error when try to save.

SQL Query: INSERT INTO `table`.`users` (`username`, `password`, `group_id`, `applications`, `modified`, `created`) VALUES ('asdasd', '23ad37a839e26fc46a1f6640861a47305aea5d46', 3, Array, '2012-04-03 02:12:19', '2012-04-03 02:12:19')

here is the code for multiple select

echo $this->Form->input('User.applications',array('options'=>$options,'multiple'=>'multiple'));

and the add method is called, which is:

if ($this->request->is('post')) {
                                //debug($this->request);exit;   
                                $this->User->create();
                                if ($this->User->saveAll($this->request->data)) {
                                    $this->Session->setFlash(__('The user has been saved'));
                                    $this->redirect(array('action' => 'index'));
                                } else {
                                    $this->Session->setFlash(__('The user could not be saved. Please, try again.'));
                                }
                            }
                            $groups = $this->User->Group->find('list');
                            $this->set(compact('groups'));

thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:52:20+00:00Added an answer on June 1, 2026 at 4:52 am

    solved it using this

    public function add() {
                                if ($this->request->is('post')) {
    
                                    if(count($this->request->data['User']['applications'])){
                                        $this->request->data['User']['applications'] = implode(",", $this->request->data['User']['applications']);
                                    }
                    ....
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Getting following error message when I try to fetch JSON response into my app.
We are getting following error when we try to validate our app. This bundle
I'm getting the following error when I try to install one of my ClickOnce
I am getting the following error when i try to use a blue tooth
I'm getting the following error when I try to run a simple Java JDBC
I am getting the following error when I try to access bins private member
I'm getting the following error when I try to startup my application on google
I'm getting the following error when I try to install mod_wsgi ./configure checking for
I'm getting the following error when I try to extend SalatDAO or use grater[T].asObject(x):
I am getting the following error when I try to push my app to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.