我已经创建了以下代码,我似乎无法找出它有什么问题,任何帮助将不胜感激。
<?php
$con = mysql_connect("host","user","password");
mysql_select_db("Stores", $con);
$street = mysql_query("SELECT Street FROM Sports WHERE Name = 'Nike'");
if (mysql_query("CREATE DATABASE $street", $con))
{
echo "Success";
}
else
{
echo "Fail";
}
mysql_close($con);
我一直在失败,有人能指出我正确的方向吗?