I always put my database connection identifier after my query, I don't know if it's mandatory, but it wouldn't hurt to try it.
So, change this part:
<?
if($action=="edit" && isset($edit) && !isset($part)) {
$sql = mysql_query("SELECT * FROM news WHERE id = $edit") ;
to:
<?
if($action=="edit" && isset($edit) && !isset($part)) {
$sql = mysql_query("SELECT * FROM news WHERE id = $edit",$dbcx) ;
If that doesn't work, try debugging it with some or die ("Can't execute query") code to see where the query is dying.