adamjones Posted May 15, 2010 Share Posted May 15, 2010 Hi, I think the problem here is the $, and I have tried changing it to \$ - Which had no effect.. :/ Any ideas? <?php $1 = "$.jGrowl(\"\"" $2 = ", { header: '" $3 = "' });" ?> Thanks. Quote Link to comment Share on other sites More sharing options...
CodeMaster Posted May 15, 2010 Share Posted May 15, 2010 You can't use numbers as variables. The first character must be text. So: <?php $one = "$.jGrowl(\"\"" $two = ", { header: '" $three = "' });" ?> Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted May 15, 2010 Share Posted May 15, 2010 Variable names can't start with a number, they must start with a letter or an underscore. Quote Link to comment Share on other sites More sharing options...
adamjones Posted May 15, 2010 Author Share Posted May 15, 2010 Variable names can't start with a number, they must start with a letter or an underscore. Thank you, I changed it to a,b,c and it's working, except for this error; "Parse error: syntax error, unexpected T_VARIABLE in /home/habhubc/public_html/intra/msend_alert_conf.php on line 109" Line 109 = $b.... $a = '$.jGrowl(\"\"' $b = ', { header: \'' $c = '\' });' Quote Link to comment Share on other sites More sharing options...
adamjones Posted May 15, 2010 Author Share Posted May 15, 2010 Forgot my semi-colons, all working now Quote Link to comment Share on other sites More sharing options...
Kryptix Posted May 15, 2010 Share Posted May 15, 2010 You need to end each line with a semi-colon. 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.