PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

PHP error - use of undefined constant at line x... what does this mean?


This error means exactly that - you are using a constant that has not been declared anywhere in the script.

Now, if you mean to be using constants in the script, then you simply have forgotten to define it, so make sure that you do so.

More often than not however, this happens when you forget to put the $ infront of a variable name, and so you just need to insert the $ immediately before the name of that variable to fix the error.

Comment on this Question and Answer >>>

ASK A QUESTION

More errors PHP Questions

How can i fix my internet webpage?

I get the error message headers already sent, what does this mean?

I get a PHP notice for string to array conversion - help?

Hello There...I'm Having This Error which says Parse error: parse error in C:\Program Files\xampp\htdocs\WebFolder\page.php on line 914 BUT that line of code doesn't exist in my programme.Can anybody HELP me? Pleaseee.... p/s:-By The Way, I'm Usi

I get a parse error - unexpected ; at line x message. What is this?



Custom Search