little help?
here is the error
Warning: Supplied argument is not a valid MySQL result resource in /www/welcometovernon/coupons/update.php on line 84


here is that line
$result =mysql_query("SELECT * FROM coupons WHERE username=$username",$db);

Im already connect to the database and everything.. the table is called coupon.. username is a variable sent through a form, and is also the name of one of the collums in the database

any ideas?
thanx