php如何写删除整个数据库语句呢?大师

WBOY
Release: 2016-06-13 11:05:31
Original
1126 people have browsed it

php怎么写删除整个数据库语句呢?请教各位大师!
$hostnames = 'localhost';
$userids = 'root';
$passwords = '123456';
$database = '213';

$conn = mysql_connect($hostnames,$userids,$passwords);
mysql_select_db($database,$conn);
$sql = "drop database `213`";
mysql_close($conn);
------解决方案--------------------
$conn = mysql_connect($hostnames,$userids,$passwords);
mysql_select_db($database,$conn);
mysql_query("drop database `213`");
mysql_close($conn);

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!