I am a very beginner in PHP & mysql. I was searching for the syntax for creating a new database and found the following: (( Assuming I am trying to create "employee" database))
$result= mysql_create_db("employee", $DBconnect);
$SQLString = "CREATE DATABASE $employee";
$QueryResult = @mysql_query($SQLString, $DBconnect);
$sql = 'CREATE DATABASE 'employee';
$createdb=mysql_create_db(employee, $dbconnect);
Can anyone help me to figure the differences between all of those?? PLZ let me know if there is any syntax mistakes!!
$SQLString = "CREATE DATABASE `employee`"; // was "CREATE DATABASE $employee";