Cyto Posted November 8, 2010 Share Posted November 8, 2010 Hey, Got 2 row's as defined: No What i want to do is: If the 2 row's still have the value No echo it, but if row 1 have a changed value echo only row 1. Same goes to row 2. And the 2 row's have both a changed value echo both. Can someone help me? Cheers. Link to comment https://forums.phpfreaks.com/topic/218060-question/ Share on other sites More sharing options...
Rifts Posted November 8, 2010 Share Posted November 8, 2010 wtf are you saying? can you please just post some code Link to comment https://forums.phpfreaks.com/topic/218060-question/#findComment-1131592 Share on other sites More sharing options...
Cyto Posted November 8, 2010 Author Share Posted November 8, 2010 I dont have a code, trying to make one as mentioned above. Link to comment https://forums.phpfreaks.com/topic/218060-question/#findComment-1131605 Share on other sites More sharing options...
revraz Posted November 8, 2010 Share Posted November 8, 2010 Just do a IF statement and check it how you want it to display. If you can say it in a post, then you can transpose it into code. Link to comment https://forums.phpfreaks.com/topic/218060-question/#findComment-1131621 Share on other sites More sharing options...
Oziam Posted November 8, 2010 Share Posted November 8, 2010 so something like; if($row1 == 'No' && $row2 == 'No'){ echo "$row1"; echo "$row2"; } elseif($row1 != 'No' && $row2 == 'No'){ echo "$row1"; } elseif($row1 == 'No' && $row2 != 'No'){ echo "$row2"; } etc... Link to comment https://forums.phpfreaks.com/topic/218060-question/#findComment-1131627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.