I am having an error with one of my forum threads. Any help would be greatly apreciated. error: Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /blah/blah/public_html/blah/blah/ame_bbcode.php(869) : eval()'d code on line 1 here is line 869 of the code : eval('$ameinfo[\'code'\] = "' . ame_slasher($code, false) . '";'); I have limited basic PHP knowledge, I tried a few things , but nothing worked. Thanks again. P.S. I am glad I found this site. This site is great, I will definitely be visiting more often.
backslash needs to be before the quote eval('$ameinfo[\'code\'] = "' . ame_slasher($code, false) . '";');
I am sorry . I must have posted a line that I was playing with. Thanks for the quick response. Here is the actual line 869 of code that is causing the problem. eval('$ameinfo[\'code\'] = "' . ame_slasher($code, false) . '";'); Again any help would be greatly appreciated..
yes , it seems to be happening on that thread only. When I try to open it up, I get that error. I would just delete that thread , but it has alot of info on it I would like to keep.
yeah i tried that too... what a pain.. I am figuring it is something in the thread that causing the problem. but i cant open it cause of then error to see what it is.
I don't see the reason why you are even using eval? Try $ameinfo['code'] = ame_slasher($code, false); PHP:
Read it carefully and check all codes line by line use adobe dreamweaver to adoiv the simpliest mistakes