Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 0 in C:\AppServ\www\phpdemo\newssave.php on line 7
<?php 
    include"setup.php";
    $anonym=$_Post["anonym"];
    $sub=$_Post["sub"];
    $content=$_Post["content"];
    $sql= "insert into $newstable values('id','$anonym','$sub','$content');";
    $connect= mysql_connect($DB_SERVER,$DB_USER,$DB_PASS)or die("CONNECT WORNG");
    $db=mysql_select_db($DB_Name,$connect)or die("WORNG");
    $query= mysql_query($sql,$connect)or die("CONNECT WORNG");
    if(!$query) {
        print "POST ERROR";
    }
    else {
      print "post *** ok!";
    }
?>
 
    