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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:22:14+00:00 2026-05-26T10:22:14+00:00

I have 2 different servers: one running Plesk Panel (PHP 5.2.13 & MySQL 5.0.45-community-nt),

  • 0

I have 2 different servers:
one running Plesk Panel (PHP 5.2.13 & MySQL 5.0.45-community-nt),
and the other running Zend Server 5.5 (PHP 5.2.17 & MySQL 5.1.50-community).

I have a table in mysql DB on both servers as follows:

    CREATE TABLE `test_table` (
      `id` int(11) NOT NULL auto_increment,
      `num` int(5) NOT NULL,
      `txt` text NOT NULL,
      `ste` bigint(5) NOT NULL,
      PRIMARY KEY  (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1

i run the following php code on both servers:

    mysql_query("START TRANSACTION");

    if(!mysql_query("insert into test_table(num,txt) values(1,'sd')"))
    {
        echo "ERROR OCCURED.
".mysql_error(); mysql_query("ROLLBACK"); exit; } else { echo "Successful insertion"; mysql_query("COMMIT"); exit; }

i get the query successfully run on my Plesk Server (with warnings – if run SHOW WARNINGS query, i get “Field ‘ste’ doesn’t have a default value”, but the row is inserted and mysql_query returns true)

but on my Zend server, mysql_query returns false and the same error is shown. the row is not inserted.

i need the row to be inserted ignoring warnings. i spend a whole day on this and is out of options now.

please help me on this. thanks lot in advance.

  • 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-26T10:22:15+00:00Added an answer on May 26, 2026 at 10:22 am

    It would seem as though the MySQL running on your Zend server is running in Strict Mode. This means that what would otherwise be a warning becomes a fatal error.

    See here for information on server modes and how to change them, try disabling Strict Mode, and see if that helps.

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

Sidebar

Related Questions

We have a number of servers running various different LAMP setups. One thing that
I have 2 different web servers on a Debian Lenny machine. One is running
I have a web-server, that serves different domain-names, but has only one IP-address assigned.
When I have two mysql servers that have different jobs (holding different databases) but
I have basic idea about running PHP in different configurations like mod_php, cgi, FastCGI,
I have two servers: one running a django app and one running both a
A client of mine owns 2 dedicated servers - both running php 4.3. One
I have a IIS-Hosted WCF service running on one server and a windows service
I have two different servers each running a Ubuntu installation. On both of them,
I have multiple Django projects running on one server using gunicorn and nginx .

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.