I've created a db with phpmyadmin called tests.
My version of wampserver is 2.4. I have just installed it and not changed anything.
Now i have tried to run this code with: localhost/test/testdb.php
<?php
$conn = mysql_connect("localhost," "root," ""
or die(mysql_error());
mysql_select_db("tests"
;
$sql = "
CREATE TABLE books (
idnumber INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR (75),
author VARCHAR (50)
); ";
$sql2 = "
INSERT INTO books VALUES
(null, 'Oliver Twist', 'Charles Dickens');
";
mysql_query($sql, $conn) or die(mysql_error());
mysql_query($sql2, $conn) or die(mysql_error());
?>
-but the result is Not Found the requested URL /test/testdb.php was not found on this server.
The total URL on my computer is c:/wamp/www/test/testdb.php
Can anybody help me?