DAVEROGERS Posted January 22, 2011 Share Posted January 22, 2011 I am trying to get this to work in an html page. <head> <?php require_once('fn.inc.php'); $out=output_rss_tag($ret); ?> </head> <head> <title> </title> <style type="text/css"> <!-- h1 {text-align:center; font-family:Arial, Helvetica, Sans-Serif; } p {text-indent:20px; } --> </style> </head> <body bgcolor = "#ffffcc" text = "#000000"> <h1>server status!<?php echo $ret[sONGTITLE]; ?></h1> </body> </html> I cant seem to figure out why its not diplaying the results Many thanks Link to comment https://forums.phpfreaks.com/topic/225325-not-displaying-in-html-page/ Share on other sites More sharing options...
BlueSkyIS Posted January 22, 2011 Share Posted January 22, 2011 where is the opening html tag? why are there 2 different head tags? does the filename end in .html? if so, is your web server configured to parse .html as .php? where is $ref defined? Link to comment https://forums.phpfreaks.com/topic/225325-not-displaying-in-html-page/#findComment-1163619 Share on other sites More sharing options...
DAVEROGERS Posted January 22, 2011 Author Share Posted January 22, 2011 oops sory bout the tags <html> <head> <title>Recordheadz.net</title> <?php require_once('fn.inc.php'); $out=output_rss_tag($ret); ?> </head> <body bgcolor = "#ffffcc" text = "#000000"> <h1>server status!<?php echo $ret[sONGTITLE]; ?></h1> </body> </html> Link to comment https://forums.phpfreaks.com/topic/225325-not-displaying-in-html-page/#findComment-1163691 Share on other sites More sharing options...
kickstart Posted January 22, 2011 Share Posted January 22, 2011 Hi Possibly missing quotes echo $ret['SONGTITLE']; All the best Keith Link to comment https://forums.phpfreaks.com/topic/225325-not-displaying-in-html-page/#findComment-1163692 Share on other sites More sharing options...
PFMaBiSmAd Posted January 22, 2011 Share Posted January 22, 2011 Any answer to this question - does the filename end in .html? if so, is your web server configured to parse .html as .php? Link to comment https://forums.phpfreaks.com/topic/225325-not-displaying-in-html-page/#findComment-1163693 Share on other sites More sharing options...
DAVEROGERS Posted January 22, 2011 Author Share Posted January 22, 2011 Any answer to this question - does the filename end in .html? if so, is your web server configured to parse .html as .php? you got it mate server was not set to parse thanks alot. Link to comment https://forums.phpfreaks.com/topic/225325-not-displaying-in-html-page/#findComment-1163695 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.