Same text, one small change.

Discussion in 'HTML & Website Design' started by soapbath, Aug 27, 2005.

  1. #1
    ...%PH6% (Ec6E)
    %PH7% (Ec7E)
    %PH8% (Ec8E)

    And so on, what I need to be able to do is to get some sort of software or maybe script to make a list like the above without me having to type it out but by but, All I need changing is the number. Any help would be nice :)
     
    soapbath, Aug 27, 2005 IP
  2. sadcox66

    sadcox66 Spirit Walker

    Messages:
    496
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    put this in a file like my numbers.php and execute it
    as ]http : //soapbath/numbers.php
    
    <?php
    
    $i =1;  // start
    $j =10; // end
    while ($i<=$j) { 
        echo '%PH'.$i.'% (Ec'. $i .'E)<br>';
        $i++; 
    } 
    
    ?>
    
    PHP:
     
    sadcox66, Aug 27, 2005 IP