guitarscn Posted January 9, 2009 Share Posted January 9, 2009 I have a .php web page with these lines: //gather all the comments $commentquery = mysql_query("SELECT * FROM comments WHERE tutorialid='$tutid' ORDER BY date DESC") or die(mysql_error()); //count all the comments for the total $commentNum = mysql_num_rows($commentquery); I want the value of $commentNum which is going to be a number, to be displayed on another page that's written in HTML (.html extension) from the .php page. How can I transfer this number over? Link to comment https://forums.phpfreaks.com/topic/140219-how-do-i-output-information-from-a-php-page-to-an-html-page/ Share on other sites More sharing options...
nuttycoder Posted January 9, 2009 Share Posted January 9, 2009 you could use an iframe but your better off having all your pages with .php extension if your using php Link to comment https://forums.phpfreaks.com/topic/140219-how-do-i-output-information-from-a-php-page-to-an-html-page/#findComment-733692 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.