Web Analytics Made Easy -
StatCounter What's wrong with my coding? - CodingForum

Announcement

Collapse
No announcement yet.

What's wrong with my coding?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What's wrong with my coding?

    Please visit my test website and see the changing images in the header. You'll find that all the image title are just showing 1 1 1 1 1 1 1 1
    Whereas, it should have been 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

    I'm a newbie and I'm sure I've made a blunder in my coding. Please help me out. I'll be highly obliged.

    Here is my test website: http://www.antiquesartgallery.com/

    <div class="slideshow">

    <h1>Featured Stories</h1>

    <ul class="items">
    <?php query_posts('showposts=10&cat=8'); ?>
    <?php while (have_posts()) : the_post();$do_not_duplicate = $post->ID; $x++; ?>

    <li><a href="#">" class="selected">1</a></li>
    <?php endwhile; ?>
    <div class="clear"></div>

    <?php query_posts('showposts=10&cat=8'); ?>
    <?php while (have_posts()) : the_post(); $do_not_duplicate = $post->ID; $x++;?>

    <div class="pane">

    <a>"><img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta($post->ID, "Image", $single = true); ?>&h=54&w=69&zc=1" alt="Stocks pull out of slump but end week lower" title="Stocks pull out of slump but end week lower" width="662" height="230" /></a>
    <span class="overlay"></span>

    <a>" class="title"><?php the_title(); ?></a>

    <a>" class="info"><?php the_content(); ?></a>

    <a>" class="comment"><?php comments_popup_link('0', '1', '%'); ?></a>

    </div>

    <?php endwhile; ?>

    </div>

  • #2
    Please, please, please help me out..I'm not getting the clue to fix it!

    Comment


    • #3
      Three minutes is not an appropriate bump.
      I don't see these images at all, which means 1 of two things. Either you have removed the code for these images, or these are javascript which makes this a non-PHP problem.

      The above code is almost completely useless to us. None of those functions are core PHP functions, so we have no idea what they are supposed to do.

      As for your text display of ones, that would be this: <li><a href="#">" class="selected">1</a></li>. That 1 should be $x, but must be reprinted out in PHP mode to parse it. You also have a lot of <, >, and "'s hanging out in the middle of nowhere.

      In the future make sure all code is wrapped in [php][/php] or [code][/code] to preserve the formatting.
      PHP Code:
      header('HTTP/1.1 420 Enhance Your Calm'); 
      Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

      Comment


      • #4
        I have fixed the issue myself :-)
        Your scolding truly helped me

        Originally posted by Fou-Lu View Post
        Three minutes is not an appropriate bump.
        I don't see these images at all, which means 1 of two things. Either you have removed the code for these images, or these are javascript which makes this a non-PHP problem.

        The above code is almost completely useless to us. None of those functions are core PHP functions, so we have no idea what they are supposed to do.

        As for your text display of ones, that would be this: <li><a href="#">" class="selected">1</a></li>. That 1 should be $x, but must be reprinted out in PHP mode to parse it. You also have a lot of <, >, and "'s hanging out in the middle of nowhere.

        In the future make sure all code is wrapped in [php][/php] or [code][/code] to preserve the formatting.

        Comment


        • #5
          I have solved the problem myself....I was kind of fooling around...blush blush....
          The website will not show up as I'm going to put it offline....
          Thank you forum!

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎