Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message: mysql_errno(): XXX is not a valid MySQL-Link resource #27

Open
meast opened this issue Mar 23, 2015 · 1 comment
Open

Message: mysql_errno(): XXX is not a valid MySQL-Link resource #27

meast opened this issue Mar 23, 2015 · 1 comment

Comments

@meast
Copy link

meast commented Mar 23, 2015

there are many database operation on a controller. every db operation operate by clone ($_db = clone $this -> db). the page show some notice:

A PHP Error was encountered

Severity: Warning

Message: mysql_errno(): 31 is not a valid MySQL-Link resource

Filename: mysql/mysql_driver.php

Line Number: 470
A PHP Error was encountered

Severity: Warning

Message: mysql_error(): 31 is not a valid MySQL-Link resource

Filename: mysql/mysql_driver.php

Line Number: 457

A Database Error Occurred

Error Number:

SELECT * FROM ....

when i delete some db operation , the page shows correct.
is there anyone meets this problem?

@chekun
Copy link
Member

chekun commented Mar 24, 2015

why do you need to clone the instance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants