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 8326537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:47:38+00:00 2026-06-09T00:47:38+00:00

I would like to do the follow query in Zend DB style. Basically i

  • 0

I would like to do the follow query in Zend DB style. Basically i want to add 1000 to the value in my table where id = 1.

mysql_query("UPDATE `some_table` SET `value` = `value` + 1000 WHERE `id` = 1");

This is my Zend query, but it does not work

$data= array('value' => 'value'+1000);
$this->dbo->update('some_table', $data, $this->dbo->quoteInto('id = ?','1'));   

Advice appreciated.

  • 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-09T00:47:40+00:00Added an answer on June 9, 2026 at 12:47 am

    Try this:

    $data = array('value' => new Zend_Db_Expr('value + 1000'));
    $this->dbo->update('some_table', $data, $this->dbo->quoteInto('id = ?', 1);
    

    You need to use Zend_Db_Expr so that Zend_Db doesn’t try to quote that value or apply any transformations to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I follow the documentation there: https://developers.google.com/drive/v2/reference/children/list I would like to set a query in
One of the things I would like to follow is to stick to the
I would like to do the follow redirection using htaccess: From: http://www.mywebsite.com/home/?page_id=273&mnth=8&yr=1993 To: http://www.mywebsite.com/
This is a follow-up to my previous question I would like to find a
This is a follow-up question to the following if you would like to see:
I would like a query that will show a sum of columns with a
I have a table that its structure is as like as follow: `id` int(10)
I would like to know how to export the contents of a table or
I would like to allow users to follow other users as with Twitter, Instagram
I would like to know what rules Entity Framework follows in regards to the

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.