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. Link to comment https://forums.phpfreaks.com/topic/201892-parse-error-syntax-error-unexpected-t_lnumber-expecting-t_variable-or/ 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 = "' });" ?> Link to comment https://forums.phpfreaks.com/topic/201892-parse-error-syntax-error-unexpected-t_lnumber-expecting-t_variable-or/#findComment-1058897 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. Link to comment https://forums.phpfreaks.com/topic/201892-parse-error-syntax-error-unexpected-t_lnumber-expecting-t_variable-or/#findComment-1058898 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 = '\' });' Link to comment https://forums.phpfreaks.com/topic/201892-parse-error-syntax-error-unexpected-t_lnumber-expecting-t_variable-or/#findComment-1058901 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 Link to comment https://forums.phpfreaks.com/topic/201892-parse-error-syntax-error-unexpected-t_lnumber-expecting-t_variable-or/#findComment-1058903 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. Link to comment https://forums.phpfreaks.com/topic/201892-parse-error-syntax-error-unexpected-t_lnumber-expecting-t_variable-or/#findComment-1058904 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.