Thread: PHP help needed
View Single Post
Old 2006-06-04, 11:22 PM   #6
WarBot
If something goes wrong at the plant, blame the guy who can't speak English
 
WarBot's Avatar
 
Join Date: May 2006
Posts: 306
asdf

Thanks tickle This is what i finally came up with.

PHP Code:
<?php


$fslinks
=file("fs-Mixed.txt");
$tgplinks=file("tgp-Mixed.txt");

$numfs=count($fslinks)-2;
$numtgp=count($tgplinks)-2;

if(
$numfs>=$numtgp){
    for(
$i=0;$i<$numfs;$i++){
            if(
$i $numtgp) { 
                print(
"
                    
$fslinks[$i]<br><br>\n
                    
$tgplinks[$i]<br><br>\n");
            }else{
                print(
"
                    
$fslinks[$i]<br><br>\n");
            }
    }
}elseif(
$numtgp>$numfs){
    for(
$i=0;$i<$numtgp;$i++){
            if(
$i $numfs) { 
                print(
"
                    
$tgplinks[$i]<br><br>\n
                    
$fslinks[$i]<br><br>\n");
            }else{
                print(
"
                    
$tgplinks[$i]<br><br>\n");
            }
    }
}

php?>
Works perfectly
__________________
Submit Your TGP Galleries
WarBot is offline   Reply With Quote