nevesgodnroc Posted February 18, 2009 Share Posted February 18, 2009 I am writing a Product list template and for some reason the very first row generated even thought the html source code shows that it has its class id set the background color is not set at all. I am using the exact same code in a php loop and ever other row is formatted correctly except #1 you can view page at http://makcoinc.com/andysomm/Page.php?page_id=6 any thoughts would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/145814-my-first-row-does-not-accept-tr-class-attribute/ Share on other sites More sharing options...
Maq Posted February 18, 2009 Share Posted February 18, 2009 You're missing a ' here: </pre> <table class="'product-table_1"></ Should be: </pre> <table class="'product-table_1'"></ Quote Link to comment https://forums.phpfreaks.com/topic/145814-my-first-row-does-not-accept-tr-class-attribute/#findComment-765615 Share on other sites More sharing options...
nevesgodnroc Posted February 18, 2009 Author Share Posted February 18, 2009 thank you I have been looking for the cause of that for a couple of hours on and off. I forgaot I assigned a class to the table to. Your help is greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/145814-my-first-row-does-not-accept-tr-class-attribute/#findComment-765664 Share on other sites More sharing options...
Maq Posted February 19, 2009 Share Posted February 19, 2009 thank you I have been looking for the cause of that for a couple of hours on and off. I forgaot I assigned a class to the table to. Your help is greatly appreciated. A syntax highlighter should have picked that up. What editor do you use? Anyway, mark as [sOLVED] if that's the case. Quote Link to comment https://forums.phpfreaks.com/topic/145814-my-first-row-does-not-accept-tr-class-attribute/#findComment-766108 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.