jquery file upload 官方範列很爛

官方: https://github.com/blueimp/jQuery-File-Upload/wiki/PHP-MySQL-database-integration 少一大堆東西,根本看不懂…真的看了兩次,砍了一次放棄… 重點1: form的用法是把 < input type=“file” name=“files[]” multiple > 這行放到 form中,記得form要有id,而input裡面id拿掉 另一種方式:是在 $(function () { $(’#fileupload’).fileupload({ 這裡面補上 formData: {example: ’test'} 看了很多很多範列的….的結論,所以form不用button來submit,要用button來做,請看範例了。 重點2:在上傳的.php中,記得 bind_param(‘sisss’, 這個奇怪的東西是對應你傳參數的型能,傳兩個參數是字串,那個只要ss就行了! 還有如果要測試直接設值,請$a=“xxx”,因為reference,要給變數,不能直接設值。 http://runnable.com/UZKDAYo3XEw2AACX/how-to-upload-a-file-using-jquery-for-php 這個是過期很久的範列….不適合 現在的版本 底下這個範列簡單多了,看得懂 http://kyokasuigetsu25.wordpress.com/2011/03/29/multiple-file-upload-using-jquery-and-php/ ================================== 真心話:如果不堅持,用下面這個可能會比較快,因為下面這個寫的最完整直接,可以控制…. http://www.phpgang.com/how-to-upload-multiple-images-jquery-ajax-using-php_453.html

2014-08-12 · 1 min · 35 words · Me

jquery datatables 大推

當然有幫忙的,現在真的更好了… http://www.datatables.net/ 現在也有編輯,更狠的是,把資料打一打,全都建好了… https://editor.datatables.net/generator/index

2014-08-09 · 1 min · 4 words · Me

php implode update 高手

http://stackoverflow.com/a/5250221 非常好的寫法

2014-08-08 · 1 min · 2 words · Me

[轉]新台灣加油 20140612馬英九與蔡英文互嗆!李敖怎麼看?

推,找youtube 說很多東西

2014-07-27 · 1 min · 2 words · Me

[轉]Launcher

http://www.modaco.com/topic/372741-rom411b209-aosp-mod-22072014/page-42#entry2219923 I want to give he “good” Today I have test some launcher in terms of Ram usage & features: APUS : is the lighter, but it miss every features, no app drawer, no desktop image personalization, some crash, is a new app so is normal… I think is a good idea and in future can be a good alternative, but not at the moment. SOLO Launcher: for me is the winner, 32mb usage, complete, app drower included, digital clock & weather included, every setting you are using in nova is present, no ads, free and well developed. Nice features: gestures are included and for free, search included (internet, contact, apps) and available in lockscreen, Clock&Weather included, a Ram cleaner widger included MI Launcher aka Miui: a nightmare, heavyyyyy more than 80 mb, crash, too much complicated and rich of crapware Holo launcher: not bad but it use 40-45 mb of ram, complete as Nova and lighter but not enough compared to Solo KK Launcher: same as Holo just a litle light 36-40 mb, not bad at all and include all Nova features and more, even Clock&Weather is included, good persolazisations, theme, icons…. For me is in second place after Solo ADW: too old and a little complicated add icons at he home, 40mega usage. Is a pain s not developed anymore. APEX: is the same as nova even in ram usage too heavy for our device. NOVA: is the default launcher but easy it pass more than 60 mb with 2 process active the most of the time. Now I delete Nova and my clock and weather app (Sensee Flick Clock & weather) that use in complex 70 mb and I use SOLO that use only 32mb of ram ...

2014-07-20 · 2 min · 290 words · Me