PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 2024 → PHP page giving database connection error
PHP page giving database connection error
Started by Temi, May, 11 2010 11:40 AM - 1 reply
Posted on May, 11 2010 - 11:40 AM
Hello. I'm new to webdev but I'm building a PHP application with version 14. I have set the connection, it tests well, created a query and selected columns from my mysql table, and I'm sure there is data in that table. I created a test page with a table linked to the query but the problem is when I click on "Run the test with the default browser" it gives me this error:

Error running the test.php page.
The connection to the <temi> database on <localhost> failed. Message returned by the database: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

In WebDev the connection works fine and when I click test its successful, so how is the connection wrong on runtime?

Thanks

Note: I have other non-webdev PHP applications that are connecting to the database perfectly with the same parameters.
Posted on May, 12 2010 - 1:05 AM
Never mind, I forgot the trailing slash in the httpd.conf site config, working perfectly now!