Monkuar Posted March 7, 2012 Share Posted March 7, 2012 $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 More sharing options...
Muddy_Funster Posted March 8, 2012 Share Posted March 8, 2012 what table? what exactly are you trying to do? Link to comment https://forums.phpfreaks.com/topic/258432-how-to-make-3-columns-out-of-this-baby/#findComment-1325171 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.