Jump to content

How to make 3 columns out of this baby?


Monkuar

Recommended Posts

$notes = 'ABOUT ME SECTIOn HERE';
$signature = 'SIGNATURE STUFF HERE';
$friends = 'friends INFO HERE';
$middle=array ( "0"  => array ( "section" => $notes,
                                "hide" => $display['1'],
                                 "left" => "0",
                                 "right" => "0",
                                 "middle" => "0"
                                     ),
                  "1" => array ("section" => $signature,
                                "hide" => $display['2'],
                                  "left" => "0",
                                 "right" => "0",
                                 "middle" => "0"
                                     ),




                  "2"   => array ("section" => $friends,
                                  "hide" => $display['4'],
                                   "left" => "0",
                                 "right" => "0",
                                 "middle" => "0"
                                     ),
                );

$order = array(0,1,2);
foreach ($order as $index)
{
if ($middle[$index]['hide'] != 1)
	echo '<br>'.$middle[$index]['section'];
}

 

 

 

Okay, so  this code right here works fine, but how would I make the left/right/middle stuff correspond to right side of my table columns, middle or left? Do I need to add another demi array to make 3 in 1? or am I doing it okay with just the multi with the "left" "middle"  "right" ?

 

if 0 means false, will change them to 1 if true.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.