unemployment Posted January 24, 2011 Share Posted January 24, 2011 I get an undefined constant error message. Am I using the variable correctly? Should I use an echo to output the variable as text? Added by <?php ${displayName}; ?> Quote Link to comment Share on other sites More sharing options...
Maq Posted January 24, 2011 Share Posted January 24, 2011 You need the dollar sign directly next to your variable name. It thinks displayName is a constant. If it is, please read the manual: http://php.net/manual/en/function.constant.php Quote Link to comment Share on other sites More sharing options...
btherl Posted January 25, 2011 Share Posted January 25, 2011 Are you sure that is the code causing the warning? Yes, you should be using echo. Quote Link to comment Share on other sites More sharing options...
unemployment Posted January 25, 2011 Author Share Posted January 25, 2011 I think I just wasn't passing the variable through correctly. Problem solved. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.