Jump to content

How do I output information from a PHP page to an HTML page?


guitarscn

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.