Welcome Guest, Not a member yet? Register   Sign In
Query gets printed in browser
#1

[eluser]Neha[/eluser]
Hi,

I have written database related queries in models, but when net speed is not good error comes in page as " An Error Was Encountered. Error Number: 1053. Server shutdown in progress.
Code:
SELECT * FROM table name WHERE condition table.field = 'something'"
.
or "Database Error: mysql server has gone away:
Code:
SELECT * FROM table name WHERE condition table.field = 'something'"
."

Is not good that user see the query: Its a treat to hackers!!.

Please help me in this matter.
Thanks in advance.
#2

[eluser]Rey Philip Regis[/eluser]
hmmm... I guess you have a problem with your mysql server.. Not sure....
#3

[eluser]Neha[/eluser]
Hi,

Please someone give me the exact solution. Your help will be greatly appreciated.

Thanks
#4

[eluser]Bhavani Shekhawat[/eluser]
Are you getting the errors displayed on the page even when you are using your app on localhost?
#5

[eluser]Paulo Carvalho [/eluser]
Hello, check if on your index.php you have error_reporting set to E_ALL.
If so change it to NULL.
For mysql errors goto database file in config and change $db['default']['db_debug'] = TRUE; to FALSE!
Paulo Carvalho




Theme © iAndrew 2016 - Forum software by © MyBB