摘要:
<?php//数据库连接$conn = mysql_connect('localhost', 'root', '');mysql_select_db('test', $conn);mysql_query("SET NAMES GBK");/*支持事务的表必须是InnoDB类型一段事务中只能出现一次:mysql_query('START TRANSACTION');//开始事务mysql_query(' ROLLBACK ');//回滚事务mysql_query('C 阅读全文