怎样在PHP中执行一系列的MySQL语句?
怎样在PHP中执行一系列的MySQL语句?例如下面的MySQL语句:
DROP TABLE IF EXISTS cdb_stats;
CREATE TABLE `cdb_stats` (
`type` char(10) NOT NULL default '',
`variable` char(10) NOT NULL default '',
`count` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`type`,`variable`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
INSERT INTO cdb_stats VALUES('total','hits','1');
INSERT INTO cdb_stats VALUES('total','members','0');
INSERT INTO cdb_stats VALUES('total','guests','1');
INSERT INTO cdb_stats VALUES('os','Windows','1');
INSERT INTO cdb_stats VALUES('os','Mac','0');
INSERT INTO cdb_stats VALUES('os','Linux','0');
INSERT INTO cdb_stats VALUES('os','FreeBSD','0');
有高手吗?看到后请赐教!