2014年2月20日

fwrite() and UTF8 转载

摘要: 4 down voteIf you know the data is in UTF8 than you want to set up the header.I wrote a solution answering to another tread.The solution is the following: As the UTF-8 byte-order mark is \xef\xbb\xbf we should add it to the document's header.You can adapt it to your code, basically you just want 阅读全文

posted @ 2014-02-20 19:03 wensky 阅读(458) 评论(0) 推荐(0)

mysql 表字段与关键字相同的话

摘要: desc is a reserved keyword (short for DESCENDING in ORDER BY).Enlose it into backticks:INSERT INTO ideas (title,`desc`) VALUES ('$title','$desc'); 阅读全文

posted @ 2014-02-20 16:26 wensky 阅读(308) 评论(0) 推荐(0)

导航