Amateur attempt at auction script
<p>I have the following code that i don't suppose for one moment is complete for the purpose of an auction yet it should work at this stage, nevertheless, as far as i can see.  But i doesn't.  Just wondered if somebody could point my mistake.  The broswer says that the else in the php script is unexpected.  Removing it leaves the browser not expecting the closing html tag at the end.  Many thanks in advance for any suggestions.  Cheers</p>

<pre><code>&lt;?php


$hostuser = $_GET['user'];

$auc = $_GET['auc'];


//Connect to database

$con = mysql_connect('localhost', 'root', 'password');
$db = mysql_select_db("users");



$auction = mysql_query("

SELECT * FROM auction WHERE host = '$hostuser'

");

$row = mysql_fetch_array ($auction);

$current_bid = $row['current_bid'];
$current_bid_user = $row['current_bid_user'];
$time_started = $row['time_started'];


if ($current_bid == 0) {

$current_bid = "No bids have yet been submitted.  Be the first to make a bid.";

}


include ('auction_1.php');

if ($bid &gt; $current_bid) {

$current_bid = $bid;
$bidsubmitted = "";

{
else

$bidsubmitted = "Your bid must exceed the current bid";

}






 ?&gt;

&lt;html&gt;

&lt;form action = 'auction_1.php' method ='POST'&gt;

&lt;br&gt;
Current bid: &lt;?php echo $current_bid; ?&gt;
&lt;br&gt;
&lt;br&gt;
Time Left:

&lt;table&gt;
            &lt;br&gt;
            &lt;br&gt;
            &lt;tr&gt;
            &lt;td&gt;
            Your bid:
            &lt;/td&gt;
            &lt;td&gt;
            &lt;input type = 'text' name = 'userbid'&gt;
            &lt;/td&gt;
            &lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;
&lt;input type='submit' name='bid' value='Bid'&gt;

&lt;?php echo $bidsubmitted; ?&gt;




&lt;/html&gt;
</code></pre>
