<?php
mysql_select_db('Project3', mysql_connect('127.0.0.1', 'username', 'password')) or die (mysql_error());
mysql_query('UPDATE Table_2 SET comment_voting = "yes", allow_rating = "yes" WHERE comment_voting IS NULL AND allow_rating IS NULL') or die (mysql_error());
?>