Probably this:
mysql_db_query
should be:
mysql_query
making it like this:
$check = mysql_query($sql) or die(mysql_error());
Make also sure that you put these lines on top of your script to see if there are any errors coming up:
ini_set('display_errors', true);
error_reporting(E_ALL);
Sarfraz
2010-07-24 08:17:58