php-no head of the body. How to solve

Source: Internet
Author: User
php-Headless Corpse ...
PHP operation MySQL.
Before the various table operation is normal, the execution to the following prompt insertion succeeds, but the database has no data.

Same user same account to terminal to perform everything normal.

Then I changed the root account on the PHP page, OK, everything is OK. If the account permissions issue, then the terminal should not be inserted properly.
What's the problem?

I rub ...

------Solution--------------------
MySQL, if we can track the database.
MySQL is too weak to function.
------Solution--------------------
Too little information to judge
------Solution--------------------

Prompt insertion success, the database has no data???
That's not the case.

------Solution--------------------
is not connected to a different database.
------Solution--------------------
1. No specific code is impossible to judge
2.lz so strong people are not done, we say the pressure is very big! Ha ha
------Solution--------------------
It's useless to give the code a little bit of code.
------Solution--------------------
Have encountered, coding problems. Causes the content to be null and cannot be inserted
------Solution--------------------
Use MySQL;
Select Host,user from user to see if the host is not authorized to log on from other hosts?
or log in to your MySQL from another host with no account.
------Solution--------------------
Oh, I know that.
------Solution--------------------
And this strange thing. Look at your code.
------Solution--------------------
Do you have a repeating table?
Is data encoding consistent?

I'm more inclined to the second item.
------Solution--------------------
Boss this time of the RP has a problem, and later try to estimate it.
------Solution--------------------
If you're in trouble, think calmly.
------Solution--------------------
discuss

Use MySQL;
Select Host,user from user to see if the host is not authorized to log on from other hosts?
or log in to your MySQL from another host with no account.

------Solution--------------------
discuss

La La ...

The problem was solved, and it was written to sleep and woke up to find a problem with the code. I'll talk about it in another post. It must be that the code is not written well, but I still need to test it further.

------Solution--------------------
Remember a word: The computer can not be wrong, the wrong is always a person
------Solution--------------------
The title of the landlord is very appealing.
------Solution--------------------
discuss

Processing is complete.
The code in the MySQL transaction part of the package did not write well, and now changed, has forgotten how it was written (just the wrong code). I'm going to be the boss nagging.
Do not eat full nothing dry to encapsulate the operation of MySQL.

This is the process.
MySQL handles normal alone
MySQL Transaction start
MySQL Transaction end
MySQL things handled separately--here begins to show symptoms
Now the transaction section is repaired, so it's all normal.

Thank you for your enthusiastic participation. Hope to learn ...

------Solution--------------------
It should be a coding problem.
------Solution--------------------
discuss

Too little information to judge
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.