Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770
Форумы портала PHP.SU :: Версия для печати :: unexpected T_ENDWHILE
Форумы портала PHP.SU » » Если скрипт не работает » unexpected T_ENDWHILE

Страниц (1): [1]
 

1. dimaua2 - 06 Мая, 2013 - 17:23:07 - перейти к сообщению
что ему не нравится?
CODE (htmlphp):
скопировать код в буфер обмена
  1.  
  2. <?php query_posts('cat=1&showposts=5&orderby=rand');
  3. if (have_posts()) :  while (have_posts()) : the_post(); ?>
  4. <div class="rand-news">
  5. <div class="name">
  6. <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
  7. </div>
  8. <div class="pic">
  9. <a href="<?php the_permalink() ?>"><?php if ( function_exists('get_the_post_thumbnail') && get_the_post_thumbnail($page->ID, 'thumbnail') ) { echo get_the_post_thumbnail($post->ID,array(74,74), true); } else {?> <img height="74" width="74" title="no image" alt="" src="<?php bloginfo('template_url') ?>/img/noimage.png" /></a>
  10. </div>
  11. <div class="anons"><?php the_excerpt_max_charlength(140); ?></div>
  12. </div>
  13. <?php endwhile; endif; wp_reset_query(); ?>
  14.  
2. Мелкий - 06 Мая, 2013 - 17:26:44 - перейти к сообщению
else из 9 строки где закрывается?
3. dimaua2 - 07 Мая, 2013 - 00:59:21 - перейти к сообщению
хах пропустил))

 

Powered by ExBB FM 1.0 RC1