pmonty Posted January 22, 2013 Share Posted January 22, 2013 $left .= <div class="quotepost"><div class="textdiv"><q class="quotetext">.$row['quote'].</q></div><p class="quoteauthor">-.$row['author'].</p></div><br/>; on this line i am getting :Parse error: syntax error, unexpected '<' on line 91 not sure what it is because my tags look fine. Any ideas would be helpful? thanks Link to comment Share on other sites More sharing options...
thescientist Posted January 22, 2013 Share Posted January 22, 2013 you're forgetting quotes at the beginning of the string, right where the error says, at the < before div. You need to put all that text in quotes. $left .= '<div class="quotepost"><div class="textdiv"><q class="quotetext">' . $row['quote'] . '</q></div><p class="quoteauthor">' . $row['author']. '</p></div><br/>'; 1 Link to comment Share on other sites More sharing options...
Mudsaf Posted February 11, 2013 Share Posted February 11, 2013 $left .= <div class="quotepost"><div class="textdiv"><q class="quotetext">.$row['quote'].</q></div><p class="quoteauthor">-.$row['author'].</p></div><br/>; on this line i am getting :Parse error: syntax error, unexpected '<' on line 91 not sure what it is because my tags look fine. Any ideas would be helpful? thanks Or if you want to do with double quotes $left .= "<div class=\"quotepost\"><div class=\"textdiv\"><q class=\"quotetext\">" . $row['quote'] . "</q></div><p class=\"quoteauthor\">-" . $row['author'] . "</p></div><br/>"; Link to comment Share on other sites More sharing options...
callumacrae Posted February 11, 2013 Share Posted February 11, 2013 (edited) Or if you want to do with double quotes $left .= "<div class=\"quotepost\"><div class=\"textdiv\"><q class=\"quotetext\">" . $row['quote'] . "</q></div><p class=\"quoteauthor\">-" . $row['author'] . "</p></div><br/>"; You shouldn't use double quotes for a string like that, that's ugly.Mind you, you shouldn't really have HTML in a string either.EDIT: yey ipb sucks Edited February 11, 2013 by callumacrae Link to comment Share on other sites More sharing options...
dsonesuk Posted February 11, 2013 Share Posted February 11, 2013 confused again? Link to comment Share on other sites More sharing options...
callumacrae Posted February 11, 2013 Share Posted February 11, 2013 No. Link to comment Share on other sites More sharing options...
dsonesuk Posted February 11, 2013 Share Posted February 11, 2013 (edited) How do you think a CMS works, does it not store html, and add this to the page as string, or does it magically appear out of the ether. Edited February 12, 2013 by Ingolme Disrespect towards other forum members Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now