0

i have echo error.
code;

echo '<li>'; 
     echo '<div>'; 
     echo '<div class="author-image">'; 
     echo '<img alt="gravatar" src="http://0.gravatar.com/avatar/8a567031a8d520b2f97089e715b64e00?s=50&amp;d=%3Cpath_to_url%3E&amp;r=G" class="avatar avatar-50 photo" height="50" width="50" />'; 
     echo '</div>'; 
     echo '<div class="comment-wrapper">'; 
     echo '<div class="comment-inner">'; 
     echo '<div class="comment-top">'; 
     echo '<div class="comment-author">'; 
     echo '<a href="http://www.outerspiceweb.com" rel="external nofollow" class="url" target="_blank" />'.$yorumlari_cek_yeni['yazan'].'</a>'; 
     echo '</div>'; 
     echo '<div class="comment-text">'; 
     echo '<p>'.$yorumlari_cek_yeni['yorum'].'</p>'; 
     echo '</div>'; 
     echo '</div>'; 
     echo '<div class="comment-bottom">'; 
     echo '<div class="reply">'; 
     echo '</div>'; 
     echo '<div class="comment-meta">'; 
     echo '<a href="#">'.$yorumlari_cek_yeni['tarih'].'</a>'; 
     echo '</div>' 
     echo '<br class="clearer" />'; 
     echo '</div>'; 
     echo '</div>'; 
     echo '</div>'; 
     echo '<br class="clearer" />'; 
     echo '</div>'; 
     echo '</li>';

where is error? :S

7
Contributors
12
Replies
13
Views
6 Years
Discussion Span
Last Post by diafol
0

Give more details as to the problem. Are you getting an error message, and if so, what is it? If not, is it not displaying correctly?

0

Look at line 21 of your code:

echo '</div>'

You are missing the semi-colon at the end of the line, i.e. like this:

echo '</div>;'
0

no not like that :)

like this:

echo '</div>';
0

Haha, what do you suggest? echo 'hello' or die("Couldn't echo 'hello'! The program will quit now."); ?

Edited by twiss: n/a

0

I've actually seen this in javascript once:

try {
  document.write("something, don't remember");
} catch (e) {
  alert('error!');
}

Just as useless is checking for document.getElementById IMHO, but that's another story.

Edited by twiss: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.