Hello people
I have 2 tables in mySQL Database
Message, and MessageComment
I want add one on Message.numberOfComments each time some one post comment in the MessageComment table
Here is my try
[php]
$coment = sprintf(“UPDATE messages SET comentsNo=comentsNo+1 WHERE news_id =$colname_MessRc”);
mysql_select_db($database_cong, $cong);
$comentResult = mysql_query($coment, $cong) or die(mysql_error());
[/php]