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

Member Avatar for diafol

Is this a test?

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?

Post the error message you got.

commented: +++++++= +3

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>;'
Member Avatar for diafol

no not like that :)

like this:

echo '</div>';

Hahaha yep ardav! Doh! :)

Member Avatar for diafol

which tutorial?

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

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.

Missed the ; on line 21

Member Avatar for diafol

Ok, is this solved?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.