php - Having problems accessing tables with mysqli -


i'm having strange problem php mysqli extension. on local lamp installation works fine.

after testing site in final production environment, i'm getting strange errors.

this excerpt out of site internal sql logfile:

[success] select * `tbl1` order `created` desc limit 20; [error]   select * `tbl1` order `created` desc limit 20;            (table 'dbname.tbl1' doesn't exist) [success] select * `tbl1` order `created` desc limit 20; [success] select * `tbl1` order `created` desc limit 20; 

for testing purposes, executed same query 4 times in 1 function. 3 out of 4 times query succeeded. failed query returns error: table 'dbname.tbl1' doesn't exist.

this problem appears different tables , in different functions. tbl1 missing, after hitting f5 tbl2 seems missing...

there seems problem server settings since queries work in local dev environment sometimes in production environment.

does know cause problem?

edit: forgot mention: when switching normal mysql php extension works fine. seems problem mysqli.

i solved problem.

there wrong mysql-proxy setup. lost connection backend server. causing table not found error.

sorry bothering , tried help!

have nice day.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -