Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2003
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What's wrong with my code?

    Could somebody tell me what I'm doing wrong here? The bottom of the page gets ignored by the script...

    Output (source) of http://atforums.theraven7.com/index.php

    $action gets set to "get" when empty...
    $type gets set to "all" when empty...

    The only secion that has a problem is "get..."

    There's no error messages...

    index.php script

    This is missing from the bottom:

    Code:
    <-- from index.php $action="get" //-->
      <tr><td>
      <table>
      <tr><th class="thead" colspan="2">-- Statistics --</th></tr>
      <tr><td class="thead"><b>Number of Submissions<? echo $catagory; ?></b></td><td class="tdata"><? echo $subcount; ?> Submissions</td></tr>
      <tr><td class="thead"><b>Total Votes:</b></td><td class="tdata"><? echo $numvotes[0]; ?> Votes</td></tr>
      <tr><td class="thead"><b>Your been here:</b></td><td class="tdata"><? echo $your_count; ?> Times</td></tr>
      <tr><td class="thead"><b>Site Count:</b></td><td class="tdata"><? echo $count[0]; ?> Visitors</td></tr>
      </table>
      </td></tr>
      </table>
    
    <!-- this, of all things, should get printed //-->
    
    </td></tr></table>
    
    <!-- from template.php //-->
    <p align="center" class="footer">All data above is copyrighted by their respective authors.</p>
    </body>
    </html>
    Last edited by lord_raven; 03-31-2003 at 01:13 AM.

  • #2
    New Coder
    Join Date
    Mar 2003
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nevermind, I figured it out...

    For some reason, break; was stopping the entire script instead of just stopping the for loop...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •