Jump to content

mysql code shown in browser


WesleyA

Recommended Posts

My script gives a sort of an errormessage.

 

Actually i can see a part of the code at the output screen in the browser.

 

Like wth the php parser you get a notice or fatal error, but in this case the script does not work.

 

How can i avoid these problems in the future?

Link to comment
Share on other sites

Usually the server will have display of errors turned off, so you will not see such a result, but for testing you would have it on so you can produce code in such a way as to validate code, and set default varible values so errors would not occure.

Link to comment
Share on other sites

If PHP code is being shown in the browser, that's because the server isn't executing the PHP. Perhaps you forgot to give the file a .php extension, or you're opening the file from your computer's filesystem rather than using localhost..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...