0 && $id < 1000000) { } else { $id = 0; } $db[$dbName]->connect(); if ($_POST['formName'] == 'postComment') { if (!empty($_POST['newComment'])) { $query = "INSERT INTO `communique_comments` (`article_id`, `article_type`,`comment`, `date`) VALUES (".$_POST['article_id'].", '".$dbName."', '".$_POST['newComment']."', NOW())"; $result = mysql_query($query) or die (mysql_error()); } $query = "UPDATE `communique_".$dbName."` SET ratingSum=ratingSum+".$_POST['rating'].", numVotes=numVotes+1 WHERE ".$idName."=".$_POST['article_id']; $result = mysql_query($query) or die (mysql_error()); ?>buildSelectQuery('*', $idName.'='.$id); $db[$dbName]->query(); $row = $db[$dbName]->getRow(); ?> Communique :: <?=ucfirst($dbName)?>




Comments:
Add your own comment & rating: