ok here is my updated code:
$comment_connection = mysql_connect($dbhost, $dbusername, $dbuserpassword);
$comment_db = mysql_select_db($default_dbname, $comment_connection);
$comment_query = "SELECT count(*) FROM $newstable, $commenttable WHERE $newstable.id =\"$commenttable.news_id\"";
$comment_result = mysql_query($comment_query);
$rowe = mysql_fetch_array($comment_result);
when i do that with the quotes in the $newstable.id=\"$commenttable.news_id\"
but when i do this:
$comment_connection = mysql_connect($dbhost, $dbusername, $dbuserpassword);
$comment_db = mysql_select_db($default_dbname, $comment_connection);
$comment_query = "SELECT count(*) FROM $newstable, $commenttable WHERE $newstable.id = $commenttable.news_id";
$comment_result = mysql_query($comment_query);
$rowe = mysql_fetch_array($comment_result);
i get the number of comments in this instance 2 comments, but it says two comments for all of the newspost.
anyone have any ideas?
i'm gonna keep working on this