namv Posted January 4, 2008 Share Posted January 4, 2008 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 More sharing options...
deadimp Posted January 5, 2008 Share Posted January 5, 2008 We need a little more context. What you're showing here looks like it should work, so the problem might lie in your loop or in the object... Link to comment https://forums.phpfreaks.com/topic/84475-show-method/#findComment-430873 Share on other sites More sharing options...
aschk Posted January 9, 2008 Share Posted January 9, 2008 It really all depends on what ->show() does for those objects. I suspect some counter is not being incremented... Link to comment https://forums.phpfreaks.com/topic/84475-show-method/#findComment-434402 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.