0

Hi.
I downloaded WAMP to run PHP scripts with database.
Everything worked fine at first, but suddenly something went wrong.
I saved phptest.php into the folder phptest in the folder WWW.
It worked with http://localhost/phptest/phptest.php at first, but suddenly it says each time I enter that url, that "www.localhost.no" is not found. wtf?
So then I try with http://127.0.0.1/phptest/phptest.php, but it stands that connection was cancelled while a page was loading!

EDIT: http://localhost/phptest/ works all the time, it shows the list of files in the folder.

Please help me! :confused:

Edited by ErlendHL: n/a

2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by ErlendHL
0

Must it be online? It worked when it was offline.
EDIT: also, it did not work by resetting the WAMP

Edited by ErlendHL: also

0

Oh! I just found out where the problem occurs:

If I remove mysql_close()or die(mysql_error());, then it works! But why won't it work else?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.