Firstly, I wanted to thank everyone for their help. It is really nice to know that there are some people out there that can help.

I am getting a wierd error that is saying I do not have access

I am running a script that creates a database. WHen I click on submit after entering the DB name I am getting the following error : -

You don't have permission to access /<br /><b>Notice</b>: Undefined variable: PHP_SELF in <b>D:/defaultWeb1/create_db.php</b> on line <b>13</b><br /> on this server.


Apache/2.0.44 (Win32) Server at localhost Port 80

I am using Apache Server, on Windows XP with version 4.3.1 of PHP.

Any Idea..

Here is the code.

<?php $conn = @mysql_connect("localhost","root","")
or die("Sorry - could not connect to MySQL");

$rs1= @mysql_create_db($new_db);

$rs2= @mysql_list_dbs($conn);
$list= '';
for($row=0; $row < mysql_num_rows($rs2); $row++)
{ $list .= mysql_tablename($rs2, $row)." | "; }

<html><head><title>Creating databases</title></head><body>
<form action="<?php echo($PHP_SELF); ?>" method="post">
Current databases: <?php echo($list); ?> <hr>
Nameinput type="text" name="new_db">
<input type="submit" value="Create database">