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
https://forums.phpfreaks.com/topic/258432-how-to-make-3-columns-out-of-this-baby/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.