Location: PHPKode > projects > phpBlogger > admin/update.php
<?php
##############################
# update.php     version 1.1.#
##############################
include ('header.php');
?>
<div id="headermenu">Update 1.1.2 -> 1.1.3</div>
<?php
$brecordSet = $conn->Execute("ALTER TABLE  `comment` ADD  `main` TINYINT( 1 ) NOT NULL DEFAULT  '0' AFTER  `commid`");
if(!$brecordSet)
	print $conn->ErrorMsg();
else
	while(!$brecordSet->EOF) {
		$option[$brecordSet->fields[0]] = $brecordSet->fields[2];
		$brecordSet->MoveNext();
}
$crecordSet = $conn->Execute("ALTER TABLE  `users` ADD  `newsletter` TINYINT( 1 ) NOT NULL DEFAULT  '0' AFTER  `moderate`");
if(!$crecordSet)
	print $conn->ErrorMsg();
else
	while(!$crecordSet->EOF) {
		$option[$crecordSet->fields[0]] = $crecordSet->fields[2];
		$crecordSet->MoveNext();
}
$conn->Close();
echo "<br /><br /><div id ='information'>&nbsp;Successfully. ";
?>
</div></div></div></div>
<?php include ('footer.php'); ?>
Return current item: phpBlogger