$sql="insert into gg_lyb(username,sex,comefrom,mote,email,content,ip,pubtime)values('$username',$sex,'$comefrom',$mote,'$email','$content','$pubip',$pubtime)";
$db->query($sql);
header("location:lyb.php");
 应该是这个  '$sex'