you can try:
mysql_db_query("bacp", "delete from news where new_id=$new_no"
                        or err_output("删除错误!";and first make sure that the Mysql database is connected.PS:
mysql_db_query
(PHP 3, PHP 4 )mysql_db_query -- Send a MySQL query
Description
resource mysql_db_query ( string database, string query [, resource link_identifier])
Returns a positive MySQL result resource to the query result, or FALSE on error. mysql_db_query() selects a database and executes a query on it. If the optional link identifier isn't specified, the function will try to find an open link to the MySQL server and if no such link is found it'll try to create one as if mysql_connect() was called with no arguments. See also mysql_connect() and mysql_query(). 
Note: This function has been deprecated since PHP 4.0.6. Do not use this function. Use mysql_select_db() and mysql_query() instead.