PDA

View Full Version : DC PHP tutorial


Anglo
09-21-2007, 08:30 AM
I started to watch the PHP tutorials (http://www.dreamweaverclub.com/forum/../vtm/php-mysql-apache.php) on this site. Downloaded all software, made the configurations as said in the tuts.

At the end of lesson number 7 I was hoping to see the result of the script. But in stead of the result, I got the following:

URL: http://localhost/Test/users.php
Msg: Not Found
The requested URL /Test/users.php was not found on this server.

I never worked with server-technology on dreamweaver, but had an idea: I copied the Test-directory from local-root to the www-directory of Wamp. Then when I F12'ed the script, I got:

URL: http://localhost/Test/users.php
Msg: Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in K:\wamp\www\Test\Connections\connection.php on line 10
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in K:\wamp\www\Test\users.php on line 7

Am I missing a connection from DW to the test server? Built both local and remote root-directories in DW. But they are not connected to 'localhost'?
As the scripts (connection and database) are exact copies (database named users through), I wouldn't think there is something wrong with the actual scripts.

Hope someone can set me on the right track.
Thanks

mark1511
10-15-2007, 09:39 PM
Hi, I am getting exactly the same problem with the page not being found, even though the files section in Dreamweaver shows that the page exists under local, remote and test server.

mark1511
10-15-2007, 09:43 PM
I think that the problem may be that I didn't specify My Documents as the WWW directory when I setup WAMP5, but I cannot see where to change this now.

davidj
10-16-2007, 05:52 AM
nice one mark. you are correct.

you can change this from the httpd config file or from the icon in the systems try you can create an alias by following the instruction on screen

i sugest you try an alias