Forum Moderators: coopster

Message Too Old, No Replies

php, mysql problem

php, mysql problem

         

alpha666

7:03 pm on Feb 26, 2007 (gmt 0)

10+ Year Member



I am experiencing a problem with php and mysql, my php pages are not displaying in the browser at all. But only when mysql is involved.

I get the following error message:

"There is a problem with the page you are trying to reach and it cannot be displayed."

However before today everything worked fine - is there anything that I can check to correct this? Thanks

eelixduppy

7:10 pm on Feb 26, 2007 (gmt 0)




is there anything that I can check to correct this?

Check your error logs for anything regarding that script. You may also want to turn error reporting [us3.php.net] up to see where the problem is coming from.

Reply back with that you've found.

alpha666

7:25 pm on Feb 26, 2007 (gmt 0)

10+ Year Member



I'm quite new so do not know how to use the error reporting script.
Perhaps a new php version was installed on the server?

eelixduppy

8:15 pm on Feb 26, 2007 (gmt 0)



Try adding the following to the to of the php script:

error_reporting(E_ALL);

alpha666

6:15 am on Feb 27, 2007 (gmt 0)

10+ Year Member



Thanks I tried it and it shows two variable errors.
But all other scripts working with mysql don't work.
They did work previously but not now, could it be because of an apache or php upgrade?
Thanks again

eelixduppy

11:50 am on Feb 27, 2007 (gmt 0)




could it be because of an apache or php upgrade

Well, yes it could be because of an upgrade, but you said that you are only getting variable errors which leads me to believe that it has nothing to do with that because if that were the case, you'd be getting undefined functions errors.

If you would like, post the relevant code that isn't working for you along with the exact errors you are receiving (with the corresponding lines) and we'll see what we can do. :)