Describe the function / purpose of the following PHP code segment. if (mysql_query("CREATE DATABASE my_db", $cn)) {
Posted: Sun May 15, 2022 12:51 pm
Describe the function / purpose of the following PHP code
segment.
if (mysql_query("CREATE DATABASE my_db", $cn))
{
echo "Database created!";
}
else
{
echo "Database exists! " .
mysql_error();
}
segment.
if (mysql_query("CREATE DATABASE my_db", $cn))
{
echo "Database created!";
}
else
{
echo "Database exists! " .
mysql_error();
}