doubledee Posted August 12, 2011 Share Posted August 12, 2011 Is there a better way to write this line of PHP nested in my HTML?? <?php echo '<link type="text/css" rel="stylesheet" href="' . WEB_ROOT . 'css/main.css" />'; ?> Thanks, Debbie Link to comment https://forums.phpfreaks.com/topic/244565-better-way-to-write-php-nested-in-html/ Share on other sites More sharing options...
phpSensei Posted August 12, 2011 Share Posted August 12, 2011 lol, the opposite? <link type="text/css" rel="stylesheet" href="<?php echo WEB_ROOT; ?>css/main.css" /> Link to comment https://forums.phpfreaks.com/topic/244565-better-way-to-write-php-nested-in-html/#findComment-1256198 Share on other sites More sharing options...
doubledee Posted August 12, 2011 Author Share Posted August 12, 2011 lol, the opposite? <link type="text/css" rel="stylesheet" href="<?php echo WEB_ROOT; ?>css/main.css" /> Oops! I tried something similar earlier and it didn't work. I must have had a few characters out of place?! Thanks. That looks much better!! Debbie Link to comment https://forums.phpfreaks.com/topic/244565-better-way-to-write-php-nested-in-html/#findComment-1256200 Share on other sites More sharing options...
phpSensei Posted August 12, 2011 Share Posted August 12, 2011 Np haha Link to comment https://forums.phpfreaks.com/topic/244565-better-way-to-write-php-nested-in-html/#findComment-1256204 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.