sql 语句在phpmyadmin运行正常,但在PHP无法运行 mysqlsqlphp 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 php 限定一次只能执行一条 sql 指令你这是两条,自然就不行了 应该是分开执行两条语句,DROP TABLE if exists `install`,`user`,`theme`,`reply`;执行一次,第二次执行creat后面的 $sql1=<<<EOFDROP TABLE if exists `install`,`user`,`theme`,`reply`;EOF;$sql2=<<<EOFcreate table `install` (`id` int(11) unsigned NOT NULL auto_increment,`themenum` int(11) NOT NULL,`webtitle` text NULL,`weblogo` text NULL,`webkeywords` text NULL,`webdescription` text NULL,`webtop` text NULL,`webmenu` text NULL,`webfooter` text NULL,`custom1` text NULL,PRIMARY KEY (`id`), KEY `id` (`id`));EOF;$resql1=mysql_query($sql1);$resql1=mysql_query($sql2);if ($resql1 && resql2){ //success}else{ //error} 韩文 oralce 何写才能将session写对啊?? PHP中的简单正则替换问题 谁有joomla视频教程,电子书教程 这句if正确得如何写?? 求查询优化方法 向高手求助,关于xampp中apache读取数据库字符的问题 可编辑的表格? 在线等!!!!!!!!!!1 请问mssql_connect是不是只能访问本地数据库 数组问题 请教各位老师如何备份PHP网站的数据库 求助,PHP入门
你这是两条,自然就不行了
DROP TABLE if exists `install`,`user`,`theme`,`reply`;
EOF;
$sql2=<<<EOF
create table `install` (
`id` int(11) unsigned NOT NULL auto_increment,
`themenum` int(11) NOT NULL,
`webtitle` text NULL,
`weblogo` text NULL,
`webkeywords` text NULL,
`webdescription` text NULL,
`webtop` text NULL,
`webmenu` text NULL,
`webfooter` text NULL,
`custom1` text NULL,
PRIMARY KEY (`id`),
KEY `id` (`id`)
);
EOF;$resql1=mysql_query($sql1);
$resql1=mysql_query($sql2);if ($resql1 && resql2){
//success
}else{
//error
}