[PHP] help database creation....

2001-01-11 Thread Jesus Nava

Hi everybody!!!
I want to create a new database using a form to take the name of the database. For 
some reason I get "Couldn't create database". Can some body tell me what I am doing 
wrong...

http://localhost/db_createdb.html");
  exit;
}
$db_name = $dname;
$connect = @mysql_connect("localhost", "jnava", "jnava77") or die("Couldn't connect");
$result = mysql_create_db($db_name, $connect) or die("Couldn't create database.");

if ($result)
{
 $msg = "Database has been created!";
}
?>


Create a MySQL Database









[PHP] What a session is on php?

2001-01-11 Thread Jesus Nava

Could anybody explain me what a session is in php?

Thank you...