View Full Version : What's wrong with my code?

03-31-2003, 01:42 AM
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 (http://www.theraven7.com/source.php?url=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 (http://atforums.theraven7.com/index.php.txt)

This is missing from the bottom:

<-- from index.php $action="get" //-->
<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>

<!-- this, of all things, should get printed //-->


<!-- from template.php //-->
<p align="center" class="footer">All data above is copyrighted by their respective authors.</p>

03-31-2003, 05:01 AM
Nevermind, I figured it out...

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