SpinerC Posted January 13, 2007 Share Posted January 13, 2007 Parse error: parse error, unexpected T_STRING (edited personal info)/index.php on line 18 I understand there is an error in the index.php file but, I can't find it on line 18. I removed all the HTML codes I had added I have been working on the Index Page in this section of the file: define('TEXT_MAIN', there is another ' single right after the comma, then what I had to say on the Index page..... now at the end of what I have said, do I add ') or just the ' or no? It has been a while and I just need a little push in the right direction.... it was going so well too :'( Thank you for any help, I love the program so far! Sincerely Char :) Link to comment Share on other sites More sharing options...
spax Posted January 13, 2007 Share Posted January 13, 2007 It should be: define('TEXT_MAIN', 'You text here between the single quotes, semi-colon at the end'); Also, escape any apostrophes within the text with a backslash: Don\'t, won\'t, can\'t etc. Link to comment Share on other sites More sharing options...
SpinerC Posted January 13, 2007 Author Share Posted January 13, 2007 Thanks Peter, it seems there is more then one, I have run through lines 18, 13, 22, and now 21. I made the corrections you suggested then found the "&" I had used as a short form and replace them with the word instead..... can't find anything else, even read it outloud. And I did add the '); Back on as well...... now on line 21 and nothing I can see :'( Thanks for the help though, I did learn something new lol the "\" with the apostrophies Sincerely Char :o) Link to comment Share on other sites More sharing options...
spax Posted January 13, 2007 Share Posted January 13, 2007 If you remove all the text from the TEXT_MAIN constant, so you are left with just define('TEXT_MAIN', ''); does the error go away? Make a copy of the file and try it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.