FinalFrontier Posted December 3, 2011 Share Posted December 3, 2011 Like the topic says. This is it: $margin-leftdelivery = "margin-left: -130px;"; Error log states: syntax error, unexpected '=' How so? Quote Link to comment https://forums.phpfreaks.com/topic/252383-apparantly-theres-something-wrong-with-my-variable-i-disagree/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 3, 2011 Share Posted December 3, 2011 You cannot use a minus sign - in a variable. $margin-leftdelivery is a mathematical expression and is trying to evaluate the variable $margin - (minus) the constant leftdelivery. A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. Quote Link to comment https://forums.phpfreaks.com/topic/252383-apparantly-theres-something-wrong-with-my-variable-i-disagree/#findComment-1293894 Share on other sites More sharing options...
FinalFrontier Posted December 3, 2011 Author Share Posted December 3, 2011 Didn't know that. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/252383-apparantly-theres-something-wrong-with-my-variable-i-disagree/#findComment-1293895 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.