bluegray Posted March 10, 2010 Share Posted March 10, 2010 So my question is simple, but for brevity's sake I need to show you what's confusing me before I can articulate it. while ($row = mysql_fetch_array ($result)) { ?> <div class="blah"><?php ; include ("vars.inc.php") ; ?> </div> <span>blah blah</span><?php ; } ?> In regards to the ; after the div and span tags, are they needed/proper? The display result is the same either way. So nothing "breaks", but is it standards compliant to leave them out? Or should I put them in? Any help in the regards of adequately articulating what's going on there will also be much appreciated. Thanks! Link to comment https://forums.phpfreaks.com/topic/194732-xhtml-integration-with-conditionals/ Share on other sites More sharing options...
5kyy8lu3 Posted March 10, 2010 Share Posted March 10, 2010 I'm not sure what exactly you're asking, but if I were to have coded that, this is how I prefer to do it. Then again your code didn't make much sense to me so anyways. include("vars.inc.php"); while ( $row = mysql_fetch_array($result) ) { echo ' <div class="blah"> <span>blah blah</span> </div>'; } Link to comment https://forums.phpfreaks.com/topic/194732-xhtml-integration-with-conditionals/#findComment-1024074 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.