R
rage l
Guest
I have on PHP file with:
//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);
And I want the value of $commentNum (which is going to be one number) to display on another HTML page I have where I want it to go.
How can I transfer this information to the .html page from the .php page?
//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);
And I want the value of $commentNum (which is going to be one number) to display on another HTML page I have where I want it to go.
How can I transfer this information to the .html page from the .php page?