mysql_query("INSERT INTO $tbl_name(city_id, city, state_id) VALUES(NULL, ".$city.",'4421')") or die(mysql_error());
Try this.
or die()
is a php construct - you misplaced a bracket which meant it went inside the sql query.
This is why your error thinks that mysql_query()
has a second parameter.