Here is the full code for the page:
<?php
$connection= @mysql_connect ("localhost", "westerly", "k47UhFYM");
if (!$connection) {
echo( "<P>Unable to connect to " .
"database server at this time.</P>" );
exit();
}
mysql_select_db("westerly_com", $connection);
if (! @mysql_select_db("westerly_com") ) {
echo( "<P>Unable to locate information " .
"database at this time.</P>" );
exit();
}
?>
<?php
$goal = mysql_query("INSERT INTO AutoInformation (CarYear, CarMake, CarModel) VALUES ('$CarYear', '$CarMake', '$CarModel');
?>
<P>Your insurance quote is approximately: </P>
<BLOCKQUOTE>
<?php
$result = mysql_query(
"SELECT InsuranceRate
FROM Year_Rates, AutoInformation, CarRatings
WHERE AutoInformation.CarMake=CarRatings.CarMake
AND AutoInformation.CarModel=CarRatings.CarModel
AND CarRatings.CarRating=Year_Rates.CarRating
AND Year_Rates.CarYear=AutoInformation.CarYear");
// Display the text of insurance rate
while ( $row = mysql_fetch_array($result) ) {
echo("<P>" .
$row["InsuranceRate"] . "
</P>");
}
?>
</BLOCKQUOTE>
dollars per month. This rate is estimated. <br>
You should fill out a full quote form for a <br>
more accurate insurance quote.