<?
//phpmyadmin version on server 4.1.21
$DBSERVER = "localhost" ;
//$DATABASENAME = "test";
$USERNAME = "username";
$PASSWORD = "password";
$db=mysql_conne ct($DBSERVER, $USERNAME, $PASSWORD);
$dbname = 'testdb1';
mysql_query("CR EATE DATABASE $dbname") or die("Couldn't Create Database: $dbname");
echo mysql_error();
?>
// THIS GIVES ME ERROR "Couldn't create Database : testdb1"
// i can create databse using this username and password through control panel of server.. why can't through PHP
//phpmyadmin version on server 4.1.21
$DBSERVER = "localhost" ;
//$DATABASENAME = "test";
$USERNAME = "username";
$PASSWORD = "password";
$db=mysql_conne ct($DBSERVER, $USERNAME, $PASSWORD);
$dbname = 'testdb1';
mysql_query("CR EATE DATABASE $dbname") or die("Couldn't Create Database: $dbname");
echo mysql_error();
?>
// THIS GIVES ME ERROR "Couldn't create Database : testdb1"
// i can create databse using this username and password through control panel of server.. why can't through PHP
Comment