PHP page access to postgres database issues
This machine is equipped with Php,apache,postgres database
I want to insert the data from the page into the native database from the browser PHP page, I write the code is certainly correct, but just can't insert the data into the library (run, he only run the code before the library code, and then do not go, and no error, but the code is absolutely correct, the following code:), as if there is no access, But online write user rights too messy, I beginner, can not understand.
Can write down the specific in those files, how to match the page data into the library. The more detailed the better. I'll give it back to you!
echo "222";
[Email Protected]_connect ("host=localhost user=postgres password=postgres dbname=dam port=5432") or Die ("ERROR");
echo "AAAAA";
? >
The browser displays only 222, but does not display AAAAA. But log out of the library code can show AAAAA, why?
------Solution--------------------
[email protected] and see what's wrong.
------Solution--------------------
This situation requires you to reinstall PHP, according to the correct configuration method settings, especially to specify the correct Postgres database,
Failed to find the library file
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.