:::: 菜单 ::::
日志标签:MYSQL

PDO事务处理报错?

今天遇到PDO处理事务部分的报错:

Fatal error: Uncaught exception ‘PDOException’ with message ‘There is no active transaction’ in /data/www/web.passport/pay/classes/class.Mydb.php:145 Stack trace: #0 /data/www/web.passport/pay/classes/class.Mydb.php(145): PDO->rollBack() #1 /data/www/web.passport/pay/yeepayOrder.php(138): Mydb->transaction(Array) #2 {main} thrown in /data/www/web.passport/pay/classes/class.Mydb.php on line 145

查找错误日志看到:

[ 阅读全文 ]


Php中session_start()出错解决方法

暂时不搞.net,对PHP有兴趣了,开始边学PHP边搞. 入门阶段匪夷所思的事情真多,还好我有心理准备. 昨天夜里遇到个问题,在PHP里session_start() 总是报错:

Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at D:wwwrootEZineTest.php:1) in D:wwwrootEZineTest.php on line 1

上网搜寻N多,发现关于其解释和解决之道有三种: [ 阅读全文 ]