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? 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. 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. 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
Archived
This topic is now archived and is closed to further replies.