1.出現warning: no newline at end of file
2.查看.c檔案最後一行沒有換enter
3.再編譯一次就沒有出現警告
4.這是在最後一行加Enter的結果
參考資料: http://blog.linux.org.tw/~jserv/archives/001933.html
|
廣告 |
$sSQL="insert into Personal(Account,Password,Sex,Mobile,Email,Birthday,Tel,Address,Job,Marriage,Children,Edu,Epaper,ModifyDate)
values('$Account','$Password','$Sex','$Mobile','$Email','$Birthday','$Tel','$Address','$Job','$Marriage','$Children','$Edu','$Epaper',now())";
$result=mysql_query($sSQL,$conn);
if(!$result)
echo $sSQL;
else
{
echo "<script language=\"javascript\">alert('".iconv("UTF-8","big5","會員資料已新增完成")."');location.href='./'</script>";
exit;
}
//GridView 要隱藏主鍵用
protected void GridView_list_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
e.Row.Cells[1].Visible = false;
if (e.Row.RowType == DataControlRowType.Header)
e.Row.Cells[1].Visible = false;
}
}