Load new page in div part 2
<p>I have managed to load the new page into the <code>div</code> (thanks to everyone for your help) but it looks pretty bad (got menu bar and logo, but I only wanted the content), so instead I need to load only a <code>div</code> from the new page. I tried a new script but got redirected to the new page. Please help.</p>

<pre><code>&lt;script&gt;
   jQuery(document).ready(function() {
           jQuery('.stil_link_img a').click(function(){
             var x = $(this).attr("href") + "#content_eco";
             jQuery("#new_page").load(x);
             return false;
           });
   });   


&lt;/script&gt;
&lt;div id="pachete"&gt;
   &lt;?php 
      $result=mysql_query("SELECT* FROM imagini"); 
      while($data=mysql_fetch_row($result)){
                  if( ($data[3]==1)&amp;&amp;($data[2]==2) ){ ?&gt;
   &lt;div class="stil_link_img"&gt;
      &lt;a href="&lt;?php echo $data[4];?&gt;" class="poza_efect"&gt;&lt;img  src="upload/&lt;?php echo $data[1];?&gt;"&gt;&lt;/a&gt; 
   &lt;/div&gt;
   &lt;?php               }
      }?&gt;
&lt;/div&gt;
&lt;div id="new_page"&gt;
   //some content which should be replaced with my loaded page
&lt;/div&gt;
</code></pre>
