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

  • SEARCH
  • Home
  • 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 6104175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:48:43+00:00 2026-05-23T13:48:43+00:00

I need help with this code: $mdl = Doctrine_Query::create() ->update(‘Model_CoachsTownsLang ctl’) ->set(‘ctl.Coachs_Users_id’, ‘1’) ->set(‘ctl.Towns_idTowns’,

  • 0

I need help with this code:

$mdl = Doctrine_Query::create()
                ->update('Model_CoachsTownsLang ctl')
                ->set('ctl.Coachs_Users_id', '1')
                ->set('ctl.Towns_idTowns', '1')
                ->set('ctl.Langs_idLang', '2')
                ->set('ctl.title', $data['title'])
                ->set('ctl.active', $data['active'])
                ->set('ctl.description', $data['description'])
                ->set('ctl.modyfication', '1')
                ->set('ctl.modyfied_id', $userData['id'])
                ->set('ctl.permit', $data['permit'])
                ->where('ctl.Coachs_Users_id =?', $data['id'])
                ->execute();

ZFDebug output error:

Doctrine_Connection_Mysql_Exception: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘sdfg sdfg , active = 1, description =…

But I look at this code and I see no errors in syntax. I am counting on your help.

Tabla adds structure to the database:

CREATE  TABLE IF NOT EXISTS `intelektualnie`.`CoachsTownsLangs` (
  `id` INT NOT NULL AUTO_INCREMENT ,
  `Coachs_Users_id` INT NULL ,
  `Towns_idTowns` INT NULL DEFAULT NULL ,
  `Langs_idLang` INT NULL DEFAULT NULL ,
  `title` TEXT NULL DEFAULT NULL ,
  `description` TEXT NULL DEFAULT NULL ,
  `active` TINYINT(1) NOT NULL DEFAULT 0 ,
  `modyfication` TINYINT(1) NOT NULL DEFAULT 0 ,
  `modyfied_id` INT NULL DEFAULT NULL ,
  `permit` TINYINT(1) NOT NULL DEFAULT 1 ,
  PRIMARY KEY (`id`) ,
  INDEX `fk_CoachsTownsLangs_Coachs1` (`Coachs_Users_id` ASC) ,
  INDEX `fk_CoachsTownsLangs_Towns1` (`Towns_idTowns` ASC) ,
  INDEX `fk_CoachsTownsLangs_Langs1` (`Langs_idLang` ASC) ,
  CONSTRAINT `fk_CoachsTownsLangs_Coachs1`
    FOREIGN KEY (`Coachs_Users_id` )
    REFERENCES `intelektualnie`.`Coachs` (`Users_id` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_CoachsTownsLangs_Towns1`
    FOREIGN KEY (`Towns_idTowns` )
    REFERENCES `intelektualnie`.`Towns` (`idTowns` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_CoachsTownsLangs_Langs1`
    FOREIGN KEY (`Langs_idLang` )
    REFERENCES `intelektualnie`.`Langs` (`idLang` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
  • 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-05-23T13:48:43+00:00Added an answer on May 23, 2026 at 1:48 pm

    Try changing:

    ->set('ctl.title', $data['title'])
    

    to

     ->set('ctl.title', "'" . $data['title'] . "'")
    

    and:

    ->set('ctl.description', $data['description'])
    

    to

     ->set('ctl.description', "'" . $data['description'] . "'")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need help on this following aspx code aspx Code: <asp:Label ID =lblName runat
i need help with disk_total_space function.. i have this on my code <?php $sql=select
I need help making this code work better. Currently, what happens is when it
I need help with this code, it doesent insert the values to my database.
I need to update this code: radar_layer.getTileUrl=function(tile,zoom) { var llp = new GPoint(tile.x*256,(tile.y+1)*256); var
Im new to obj-c and need some help with this code NSDateFormatter *dateFormatter =
Sorry to bother again, but I really need help transforming this Python2 code into
I need some help tweaking this php code to print out a default value
I need help with this route map routes.MapRoute(Blog_Archive, Blog/Archive/{year}/{month}/{day}, new { controller = Blog,
I am newbie to db programming and need help with optimizing this query: Given

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.