How do I output information from a PHP page to an HTML page?
Posted: Fri Jan 09, 2009 4:12 pm
I have a .php web page with these lines:
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?
Code: Select all
//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);How can I transfer this number over?