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