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

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.

ASK A QUESTION

More errors PHP Questions

Upon sending email I get an error message about every other time using the Mail() function from a form that is filled out in HTML. The email fails to send on EVERY OTHER form.

Warning: mysqli_error() expects exactly 1 parameter, 0 given in /ebs/home/hrrtllm/domains/hrrtllm.aisites.com/public_html/w5a1/details.php on line 6

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

Is it possible to create php programs and view them if my operating system is DOS, not unix? Whether I create a DocumentRoot of C:\public_html, or C:/public_html, in my httpd.conf file, the result is: When go to http://127.0.0.1, I see: Index of

( ! ) Parse error: syntax error, unexpected T_VARIABLE in C:wampwwwsessionindex.php on line 8



Custom Search