You'll be doing yourself and other coders a big favour by indenting your code like this :
<?php
$user="username";
$password="password";
$database="computersniagara";
mysql_connect(localhost,$user,$password);
if (!mysql_select_db($database)) {
die( "Unable to select database");
} else {
$query="
CREATE TABLE computersniagara (
computersniagaraDate date DEFAULT '0000-00-00' NOT NULL,
computersniagaraID tinyint(4) NOT NULL auto_increment,
computersniagaraCost char(50) DEFAULT '0' NOT NULL,
computersniagaraText char(50) DEFAULT '0' NOT NULL,
KEY computersniagaraID (computersniagaraID)";
mysql_query($query);
mysql_close();
}
?>
By indenting your code, you'll group the code in a logical way and thereby speed up reading of the code (when read by humans!) The PHP parser won't mind it by the way.