Jump to content

Show method


namv

Recommended Posts

Hi I am completely new to php and have what I hope is a simple question.

 

I have an object diplaying values in a table. I want to toggle between 2 types so I can show 1 on bold and one not.

 

if ($RowNumber == 3){

$this->LC3Locked->Show($RowNumber);

}else{

$this->Locked->Show($RowNumber);

}

 

The problem is it will show LC3Locked at row 3 which is fine, but will then continue to show it in all remaining rows.

 

So it would look something like

 

In this case N being the value of Locked and Y the value of LC3Locked.

 

N

N

NY

NY

NY

NY

 

When what I really want is

 

N

N

Y

N

N

N

 

Any help would be much appreciated.

Link to comment
https://forums.phpfreaks.com/topic/84475-show-method/
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.