Web Analytics Made Easy -
StatCounter Adding 2 columns to php... - CodingForum

Announcement

Collapse
No announcement yet.

Adding 2 columns to php...

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

  • Adding 2 columns to php...

    My code is below. Can anyone tell me how i can make those links below into 2 seperate colums. So i just dont have 1 big long line of links.


    Code:
    <?php
    
    $idx = new my_page;
    
    class my_page {
    
       function my_page()
       {
           global $ibforums, $DB, $std, $print, $skin_universal;
    $ibforums->lang = $std->load_words($ibforums->lang, 'lang_rpgindex', $ibforums->lang_id ); 
    if ($ibforums->member['g_view_rpgindex'] != 1)
        {
         $std->Error( array( 'LEVEL' => 1, 'MSG' => 'noview_rpgindex') );
        }        
     $static = "<center><a href='{$ibforums->base_url}&act=RPG'>Itemshop</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Bank'>Bank</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=sendm'>Transfer</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Heal'>Hospital</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=VAB'>Arena</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Clans'>Clans</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Stats'>Stats</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Lottery'>Lottery</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Store'>Shop</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Jobs'>Jobs</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Equip'>Equip</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Upgrdde'>Upgrade</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Adventures'>Adventures</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Steal'>Steal</a><br><br>
    <center><a href='{$ibforums->base_url}&act=RPG&CODE=Help'>Help</a><br><br>";
     
     $print->add_output($static);
     $print->do_output( array ( 'TITLE' => "Killer RPG Index" ));
    }
    
    }
    
    ?>

  • #2
    Would it be possible for you to have the links in a table with two colums?

    Something like:

    <table>
    <tr><td><a href='{<?php echo $ibforums->base_url ?>}&act=RPG&CODE=Bank'>Bank</a></td>
    <td><a href='{<?php echo $ibforums->base_url ?>}&act=RPG&CODE=sendm'>Transfer</a></td></tr>
    <tr><td> .... and so on...
    </table>

    You have to "switch off" php before the table with ?>, and "start" it again after the table with <?php.
    [Windows took my virginity, Linux took my soul.]

    BoonZie

    Comment

    Working...
    X