saradrungta Posted November 25, 2008 Share Posted November 25, 2008 hv started working on my project, but i am facing some problem I have saved some questions on a data base, then one by one i fetch data from data base & display on screen, But when ever data is something lke this it PHP server scripts are surrounded by delimiters, which? <&>...</&> <?php…?> <?php>...<?> <script>...</script> ----------------------------------------------------- What is the correct way to include the file "time.inc" ? <!--include file="time.inc"--> <?php include_file("time.inc"); ?> <% include file="time.inc" %> <?php require("time.inc"); ?> only this is displayed PHP server scripts are surrounded by delimiters, which? <&>... ... ------------------------------------------------- What is the correct way to include the file "time.inc" ? ------------------------------------------------- but normal text with no html tag is displayed fine can anyone advice what is the problem Link to comment https://forums.phpfreaks.com/topic/134206-solved-need-help/ Share on other sites More sharing options...
mtoynbee Posted November 25, 2008 Share Posted November 25, 2008 Looks like you need to use htmlentities() otherwise the webpage will not display the html tags. http://uk2.php.net/htmlentities Link to comment https://forums.phpfreaks.com/topic/134206-solved-need-help/#findComment-698585 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.