HCProfessionals Posted March 10, 2011 Share Posted March 10, 2011 This is doing bad things and not working properly $tabel_tr = ($count % 3) == 0; if($tabel_tr) echo "<tr>"; echo "<td style='width:33%;'>".$cat_row['category']."</td>"; if($tabel_tr) echo "</tr>"; $count++; Quote Link to comment https://forums.phpfreaks.com/topic/230264-3-tds-in-a-tr/ Share on other sites More sharing options...
Maq Posted March 10, 2011 Share Posted March 10, 2011 This is doing bad things and not working properly Like what? And what is supposed to do? Quote Link to comment https://forums.phpfreaks.com/topic/230264-3-tds-in-a-tr/#findComment-1185775 Share on other sites More sharing options...
HCProfessionals Posted March 10, 2011 Author Share Posted March 10, 2011 There are suppose to be 3 td's in a tr. Quote Link to comment https://forums.phpfreaks.com/topic/230264-3-tds-in-a-tr/#findComment-1185786 Share on other sites More sharing options...
kenrbnsn Posted March 10, 2011 Share Posted March 10, 2011 And what is it doing instead? Ken Quote Link to comment https://forums.phpfreaks.com/topic/230264-3-tds-in-a-tr/#findComment-1185791 Share on other sites More sharing options...
cssfreakie Posted March 11, 2011 Share Posted March 11, 2011 i could be wrong, but I only see 1 echo there for a td, if you want 3 that seems to be wrong Quote Link to comment https://forums.phpfreaks.com/topic/230264-3-tds-in-a-tr/#findComment-1186059 Share on other sites More sharing options...
n3r0x Posted March 11, 2011 Share Posted March 11, 2011 looking at it.. nothing wrong with what you sent, except that we would have to see the whole loop procedure to help you only thing i can see that might complicate it for you is if you don´t have $count =0; somewhere above this. Quote Link to comment https://forums.phpfreaks.com/topic/230264-3-tds-in-a-tr/#findComment-1186065 Share on other sites More sharing options...
sasa Posted March 11, 2011 Share Posted March 11, 2011 look http://www.phpfreaks.com/forums/index.php?topic=95426.0 Quote Link to comment https://forums.phpfreaks.com/topic/230264-3-tds-in-a-tr/#findComment-1186110 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.