Check capitalisations. Your field names MUST be EXACTLY as they are in your database, else mysql will simply bail out.
IMHO a properly formatted sql should look like this:
$result = mysql_query("SELECT bid, impavail, impmade, clicks, date FROM banner") or die ("DATABASE ERROR LINE");