title: How to php if else statement and return different divs?
body: <p>I'm trying to create an if-else statement, that will return different divs. I believe it is failing because there are too many <code>'</code> in the else statement.</p>
  
  <pre><code>&lt;?php $blogentryid = get_the_ID(); 
  
  if ($blogentryid=="1572") {
  echo '&lt;div&gt;Hello&lt;/div&gt;'
  }
  
  else {
  echo '&lt;div class="socialnews2"&gt;&lt;!-- start div social--&gt;
  
                                  &lt;div class="twitternews2"&gt;
                                  &lt;a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="&lt;?php the_title(); ?&gt;" d
  ata-url="&lt;?php the_permalink() ?&gt;" data-via="giantmangocom"&gt;Tweet&lt;/a&gt;
                                  &lt;script type="text/javascript"&gt;
                                  //async script, twitter button fashiolista.com style
                                  (function() {
                                  var s = document.createElement('SCRIPT');
                                  var c = document.getElementsByTagName('script')[0];
                                  s.type = 'text/javascript';
                                  s.async = true;
                                  s.src = 'http://platform.twitter.com/widgets.js';
                                  c.parentNode.insertBefore(s, c);
                                   })();
                                  &lt;/script&gt;
                                  &lt;/div&gt;
                          &lt;/div&gt;
                                  &lt;div class="facebooknews2"&gt;
  &lt;iframe src="http://www.facebook.com/plugins/like.php?href=&lt;?php echo urlencode(get_permalink($post-&gt;ID)); ?&gt;&amp;amp;layout=button_count&amp;
  amp;show_faces=false&amp;amp;width=80&amp;amp;action=like&amp;amp;colorscheme=light;height=21"" scrolling="no" frameborder="0" style="border:none; overflow:hidden; wid
  th:80px; height:21px;" allowTransparency="true"&gt;&lt;/iframe&gt;
                                  &lt;/div&gt;'
  
  }
  
  ?&gt;
  </code></pre>