How to fixed Miliris Action Lag / slow / frame drop?

Tuesday, July 28, 2020
Miliris Action Lag / slow / frame drop?

Solution : Go to Miliris Video Setting > Video Framerate > Select VFR.

But VFR makes Adobe After Effect cannot sync video with audio, mean audio is slower than video, so you need to download handbrake to convert video from VFR to Fixed 60 FPS.

----------------

Miliris record video color keep changing problem.
Solution : set video size to 1080 or 2160

Music Player With Local Editable Lyric

Friday, July 10, 2020
Steps :
1) Download and install Winamp Music Player.
2) Download and install MiniLyrics.
3) Open MiniLyrics to install it onto Winamp.
4) Add a song into Winamp and play it.
5) On MiniLyrics, click View > Lyric Editor. Type in the following sentence :
[00:00.01]Did you try any Expert Advisor and it burn your account?
[00:00.01]I'm here to prove all EA on the market will burn your account.

6) File > Save Lyric As.
7) On MiniLyrics, click View > Floating Lyric.
8) Right click on any part in Floating Lyric > Display Option > select "Movie Subtitle" at the last bottom "Lyrics display style" section.
9) Close Floating Lyric by right click it and close it.

日柱壬水生于十二月的命局喜忌,天干五行,富贵程度,命运顺逆

Friday, July 03, 2020
壬日主生 寅月 庚子 时 壬为阳水,生于寅提,木旺火相,时逢庚子,庚为生身之印,子为帮身之刃,此犹春冰解冻,化作巨流,虽有寅木泄水,力尚不够,必也,寅中戊土当头,始成贵格,倘再见丙,旣贵且富矣。
壬日主生 寅月 辛丑 时 壬水生临寅月,寅为壬之病地,得时干辛金生之,气势转强,时临丑土,在此际不关痛痒,因丑位北方,性为湿土,初春寒气未除,难起化学作用,最好寅中丙戊并透,不失为优越之造。
壬日主生 寅月 壬寅 时 壬水遇寅月寅时,食神盗气甚深,喜有时上比肩助之,但壬水既病于寅,则两壬不及两寅之强,还须比劫帮扶,庶可均衡局势,惟若以寅为用,则阳金忌见,阴金无妨。
壬日主生 寅月 癸卯 时 壬生寅月,木旺司权,又遇卯时,泄而又泄,所以时干癸火,喜得帮身也,但因衰病之壬癸,虽胜当旺之寅卯,犹病母之临盆,非大补不为功,所以阳水生扶,诚必要耳。
壬日主生 寅月 甲辰 时 寅月壬水,寅中甲木,得透时干,食神得禄,木愈秀而水愈衰,是宜干见金,俾其泄土制木,并生起壬水,惟庚申阳金,不及辛酉阴金,恐损食神故也。
壬日主生 寅月 乙巳 时 初春建寅之月,木旺火相,时逢乙巳木火,乙旺于寅,巳生于寅,壬水日元,被泄而不能任受其财,最宜年月见金相生,方克势均力敌,不可再见木火及土,惟比劫之水,其所喜直与金等。
壬日主生 寅月 丙午 时 壬日值丙午时,偏财临于旺地,时在孟春建寅之月,乃丙火之长生,寅午又会火局,使壬水生气毫无,倘不见官杀之土,生身之印,帮扶之水,祇有木火,则是弃命从财,大富之格也,否则必须金水相救,木火土为忌神矣。
壬日主生 寅月 丁未 时 丁与壬合,生当旺木之寅提,时元又值木库之未土,假使余柱,不杂一点金与土,乃丁壬化木之命,若以强弱而论,则壬水究为无力,年月以有金水生扶为良。
壬日主生 寅月 戊申 时 壬水虽生病地之寅,然值长生申时,不为无力,戊土透干,以杀为用,但照时令而论,还须金生水助,木虽可以制杀,而弱水不宜再泄,至于火土之当避,不言可喻矣。
壬日主生 寅月 己酉 时 孟春之壬,以得生扶为宜,时逢于酉,正印相生固佳,但此际亦属力薄,所以天干之上,还喜见金,则弱水有源,良以时干己土,究克壬水,茍其金不透干,则巳土专克其水,而无所泄化耳。
壬日主生 寅月 庚戌 时 壬日而遇寅月戌时,寅戌会火局,财旺身衰,喜得庚金印生,增长壬水力量,然而消息于轻重强弱之间,犹是木火盛于金水,故仍宜有金水,为之生扶,木火与土,理所不喜。
壬日主生 寅月 辛亥 时 壬水日干,时逢辛亥,辛金正印资生,亥水日禄通气,纵在寅月木旺之时,寅亥又合,亦不以泄气为嫌,其余干支,如见土木,则还要有金,倘有火则仍当见水,方期中和。
壬日主生 卯月 庚子 时 壬水日干,生于卯月,壬死于卯,木泄弱水,非得生扶不可,时遇庚子,庚金为之源,子水为支流,源远流长,壬水转弱为强,所以余柱须木以泄秀,有火则成富,土则喜戊不喜己,以戊土成杀刃相济也。
壬日主生 卯月 辛丑 时 卯月木旺水死,壬水休囚,时逢辛丑,辛为正印,丑虽官星,而为金库,位居北方,故以官印为用,切忌干透丙丁,以伤辛金之印,木虽弗忌而宜少,金水力薄不嫌多,土少不妨,以其生起辛金耳。
壬日主生 卯月 壬寅 时 壬水既病于时元之寅,又复死于月提之卯,颓唐巳极,虽时干透壬,相扶有情,但同病祇有相怜,不能为力,必须柱中有金,以发壬水之源,即逢申酉相冲,亦是喜而弗忌,不可再见火土,使壬水不胜应付。
壬日主生 卯月 癸卯 时 日干壬水,生卯月卯时,死地重逢,绝鲜力量,虽癸水劫财相扶,亦以泄气,而帮身徒具虚名,故若有金相生,乃伤官佩印,大忌见火,盖财能坏印,有类根断源消,木土亦忌之。
壬日主生 卯月 甲辰 时 壬日卯月,伤官泄气,何堪时又甲辰,卯辰会东方,甲木乘旺于卯,几乎全盘皆木,然若四柱无金与火土,则为从儿贵格,倘有一点火土,参杂其间,则须庚申之阳金,削木生水,方是有病为贵之造。
壬日主生 卯月 乙巳 时 壬水生卯月,卯中一木,透出时干,伤官得禄,时支巳火,虽为财贵,奈身主不能胜任,最好巳中之庚出干,不但壬水绝处逢生,且乙庚相合,以阻其泄壬之气矣,木亦不宜。
壬日主生 卯月 丙午 时 仲春卯月,木旺火相,此时之壬,当然失令,时遇丙午,偏财任旺,致无根之水,祇有弃命从财,但必年月皆火,更无一点土与晦火,方为真弃真从,否则须有大量之水帮扶,辅之以金,亦富豪之造。
壬日主生 卯月 丁未 时 壬日未时,月令在卯,卯未会局,时干透丁,丁与壬合,是乃化木格,惟余柱祇可见木,方为真化,否则须赖金以生之,水以扶之,始克用取伤官生财,然弗论从化或用伤财,官杀之土,终忌见也。
壬日主生 卯月 戊申 时 壬生仲春,卯木伤官相泄,时临申位,长生相资,申金又承戊土生之,以成偏官偏印之格,盖戊有卯制,七杀有制为偏官也,其它干支,如见木火,则以金水配之,更为美满矣。
壬日主生 卯月 己酉 时 壬水泄于月令之卯,生于时元之酉,一泄一生,虽逢冲而铢两相称,己土官透,生其所坐之酉,再受卯木威胁,可置官星于不论,即使柱有火土,仍以印缓之金,为命之精华也。
壬日主生 卯月 庚戌 时 壬水命元,时临火库之戌,月在火相之卯,卯戌六合,纵有庚金,亦遭火煏,减弱生水之力矣,不宜木火,固不待论,惟土则畏戊之克壬,而喜己之生庚,宜辨别之。
壬日主生 卯月 辛亥 时 卯月死气之壬,而时遇辛亥,正印与日禄生扶,几有返弱为强之势,祇以亥卯会局,而此时辛值绝地,所以生扶之效用,几等于零,还宜再来金水,以振作辛壬之气,木火与土,愈少愈妙。
壬日主生 辰月 庚子 时 壬水生于辰月,厚土壅塞,而水不流畅,即是弱象,或谓壬乃大海,无身弱之说者,须知石烂海枯,海虽大而能枯,焉能必不谓弱哉,好在时逢庚子,庚之源,子之流,不啻昆仑,江河所从出,而汇于大海,返弱为强势将横决,必得一戊,作之堤防,乃以杀为用,刃杀相济之佳造也。
壬日主生 辰月 辛丑 时 辰月土旺,壬水休囚,再值丑时,虽丑辰皆湿土,亦足以制弱之壬,幸而时干辛透,印缓相生,使壬水有气,如年月再有一木疏土,尤为美满,如无木疏土,则须柱有庚申,以泄旺土,亦不得已而求其次之道也。
壬日主生 辰月 壬寅 时 辰月库中之壬,水源被旺土所塞,则时之寅,洵足以启其闭塞,使水流通,况又比肩助之,等于两汇交流乎,如再有金,水有所承,而土有所泄,斯更美矣,忌戊己而不忌木火。
壬日主生 辰月 癸卯 时 壬水日元,死于卯而墓于辰,今以辰月卯时,纵有癸水,补助力微,须赖金生,否则等于停留之死水矣,然若坐寅透甲,东方一片秀气锺之,其它不见一点土金,则取从儿格可也。
壬日主生 辰月 甲辰 时 壬值辰月辰时,旺土相克,杀重身轻,甲木透于时干,纵能克制旺土,但亦盗泄水气,犹欠十全,必也,柱中有金,则弱水可生,厚土以泄,甲木虽与对敌,但因三春之木,金所不能刬尽根株也。
壬日主生 辰月 乙巳 时 三月土旺之壬水,源流被塞,辰中藏乙,得露时干,可以疎水道而导海流,惜乎时临巳火,受乙木之生,而转生土,增厚土质,助虐为虑,所以最妙年日坐申,不但壬得长生,或见金透,旺土泄气,而又巳与申合,木为金制,火旣无所禀承,则太过之土,亦不获逞矣。
壬日主生 辰月 丙午 时 季春土旺用事,壬水生此,水为土掩,干涸可虞,岂宜再逢丙午纯火时元,以生旺土,茍再年月有土而无金水木,迫之弃命而从杀,反以火土为喜,水木为忌,如以辰月而不作从格论,则非大量金水生扶,定必真穷假富矣。
壬日主生 辰月 丁未 时 丁壬虽合,惜乎辰月土旺之时,虽曰木有余气,究竟合而不化,况又喂时,未土亦旺,故与上条丙午时理论相同,必须并见金水,则水有所生,土有所制,尤须水多于木,为先决条件。否则还是身弱。
壬日主生 辰月 戊申 时 壬水生辰提,辰中戊土出干,身衰杀旺,好在时落于申,为壬水之长生,辰与申又会局相助,格为杀印相生,而其身杀两强之妙,如再干头见申,直接制旺杀,更是十全,降格以求,则以庚易甲亦可。
壬日主生 辰月 己酉 时 辰月酉时,辰酉六合,土势从金,壬虽休囚,尚得生气,所惜时干己土,终觉赘疣,是宜以金泄之,或有乙木伤之,乃全中和之道,大怕见火,以及阳木,防火资土而甲与己同化耳。
壬日主生 辰月 庚戌 时 壬生于辰,乃少年不发库中人之象,时逢庚戌,辰戌相冲,所谓墓库逢冲必发,又有庚金,以为壬水之源,因是杀印相生格也,惟考时令,终觉土旺而杀重,所以火土为大忌,金水为喜神,佐以一点之木,则美不胜收矣。
壬日主生 辰月 辛亥 时 辰月库中之壬水,最喜辛金之透,俾衰水有所生,旺土因以泄,况又时临于亥,乃壬水日禄之乡,大可返弱为强,假杀为权矣,故金水不必再见矣,木火宜少,土则独戊一夔已足。
壬日主生 巳月 庚子 时 壬水生于巳月,火旺土相之时,故壬绝于巳,时遇庚子,巳中庚透,印值长生,壬水巳非无气,加以时临子水,为壬之旺卿,因而返弱为强,不忌巳中丙戊,但不可多见火土,若戊土独透,则木之制杀,为不可少矣。
壬日主生 巳月 辛丑 时 巳月火旺土相,壬水逢绝地,时临于丑,丑中辛金正印透出,巳可绝处逢生,况巳丑亦会局生壬乎,不忌戊土,以能生金之故,独忌丙火透干,盖与辛相合,定为失恃之儿,若见丁直接克辛,反不甚忌,因丁被壬合也。
壬日主生 巳月 壬寅 时 巳月壬日,时临寅,壬病于寅,绝于巳,即有时上比肩帮扶,亦无力量,必须巳中庚金出露为上,否则纵使年月比劫重重,亦犹一羣老弱残兵,不轻一击,此条关键,全在庚之有无,最忌土木。
壬日主生 巳月 癸卯 时 壬水生于初夏,火土旺相,时逢癸卯,卯木生起旺火,财多身弱,固喜金水生扶,但时干之癸,乃是阴水,同被木泄火煏,故与上条壬寅时理论相同,亦须有金,乃成贵格,不过透庚则忌丙,见辛总畏丁耳。
壬日主生 巳月 甲辰 时 火旺土相之巳月,再逢甲辰时元,甲虽疏土,亦虑其泄壬水,生旺火也,如余柱有火土,无金水,贫夭之命,盖辰为壬库,故不能从财杀,最喜大量之金水。
壬日主生 巳月 乙巳 时 壬水日元,生巳月巳时,两逢絶气,盖以乙木相泄,而生当旺之火,无根之水,亦惟弃命从财耳,如从财不能澈底,必也,年月透庚,支或逢申亥,成财命有气之造,富亦可期。
壬日主生 巳月 丙午 时 壬水生于孟夏,火气日进,水势临于垂絶之地,其所不絶如缕者,仅有巳中藏庚暗生,今以时为丙午,火旺已极,非得壬庚透而坐子申不可,否则金水亳无,祇有木火,是诚弃命从财,为入赘之齐髠。
壬日主生 巳月 丁未 时 丁与壬合,财来就我,时令旺火,故不化木,时值未土,质虽土而位于南,巳未拱午,财旺身衰,必须比刼之助,以分财力,而轻壬水责任,但比刧尚嫌无根,还要有金生水,始为贵耳。
壬日主生 巳月 戊申 时 壬水在巳月为絶地,遇申时为长生,是真生逢絶地矣,但戊土杀透,得禄于巳,纵巳申合,亦难使土之压力减低,必须生于庚年,则为辛月,金气生旺,或壬水自坐于子,方许威权盖世。
壬日主生 巳月 己酉 时 壬日酉时,正印生身,月令在巳,巳酉会局,己土虽制壬,然因生金之故,不致克壬太甚,所谓贪生忘克,由是以断,则财官未尝不可为用,切忌见木,不但生火制金,且官星亦被所伤矣。
壬日主生 巳月 庚戌 时 巳火月建,固是壬水絶地,然巳为庚金长生,庚透时干,壬水絶而复续矣,时元之戌,本质为克水之土,且是火库,于是火土凭生旺之势,以凌轹(ㄌㄧヽ)壬庚,因而财杀旺于日主,须年月曁日支,再得金金生扶,以平衡之。
壬日主生 巳月 辛亥 时 壬日而逢巳月亥时,亥为壬禄,遂与旺火相济,至云无根之水,不胜火力者,幸有时上辛金正印为之补救,故年月之间,不怕再见财官,壬日辛时,如遇丙年癸月,又年申日寅者,诚絶类离群矣。
壬日主生 午月 庚子 时 午月火盛已极,壬水当然力薄,但因时值庚子,有庚金母体相生,子水旺气为助,大可转弱为强,其余两干两支,但敎不全是火土,则壬水终有力量,以任财官或独戊透出,卽不见木,亦不妨矣。
壬日主生 午月 辛丑 时 壬水生于午月,火旺土相,时逢辛丑,丑虽克壬,然位北方,又是金库,丑中辛透,卽绶相资,抒配五行,具中和之槪,祇敎不犯丙丁,使辛金保全为第一义,其它如金水固喜,卽土木,亦未必为忌。
壬日主生 午月 壬寅 时 壬日壬时,比肩相助有情,时临于寅,食神盗气,与月令午火会局,颇具水火旣济之象,惟总喜金,则水有源,其余干支,有木火,亦须配以金水,否则便不平均,至于官杀之土,终于不见为妙,借曰不能,则应以印绶启承之。
壬日主生 午月 癸卯 时 午月之壬,水衰火盛,时逢癸卯,癸虽同类相扶,但卯木泄弱水而生旺火,究尚木火有余,壬癸不足,最好得见庚辛申酉,则壬癸有源,木火势抑,而平衡矣,大忌再逢火以克金,土以克水,木以生火。
壬日主生 午月 甲辰 时 壬生午月,正在火炽之候,时逢甲辰,甲木生火,午火生辰,无源之水,岂能调和,故宜年月金水生扶,倘柱中复有木火与土,则身弱可虑,决非奋发有为之辈。
壬日主生 午月 乙巳 时 巳时午月,再有乙木,生旺火,此时之壬,衰弱已极,全仗巳中一点庚金,为返魂之香,但庚藏不露,犹觉画饼充饥,必须出露干头,或日坐于申,方克以抑其有余,补其空虚。
壬日主生 午月 丙午 时 月午时午,卽无丙火透干,壬水已不能任受其财,何况时又见丙,祇有弃命从财,乃余柱反喜见木火而忌金水,如见土,便当从杀不从财,若欲有力任财,则惟有庚年壬月,地支再坐子申耳。
壬日主生 午月 丁未 时 火旺土相之午提,丁壬虽合不化木,丁禄于午,正财得禄,午与未合,南方之势连横,无根之壬,何能与火相济耶,柱中金水毫无,倘重见丙火,支坐寅戌,从财并无疑义,否则祇喜重重金水,亦有病得药之理也。
壬日主生 午月 戊申 时 壬日而值戊申时,杀印相生,但月令在午,为戊土之旺气,而申金虽系壬水长生,因受午火威胁,其生水之力以减,必须庚透干头,则庚禄居申,并泄戊土,而克和谐矣。
壬日主生 午月 己酉 时 午火月令,丁己同宫,时值己酉,己土得禄于午,生起坐下酉金,壬水日干,成为财官印生,但酉畏午之虎视,必须辛金出露,得禄于酉,印绶方能有力,如有得地通根之水,亦甚需宜。
壬日主生 午月 庚戌 时 时上庚金,生起日主壬水,但时临于戌土火库,与月提之午火会局,致庚金大受打击,除非地支见申,庶几庚金通根,再见一位癸水,以遏方张之焰,俾臻十全,木火与土,悬为厉禁可也。
壬日主生 午月 辛亥 时 亥时壬日,名曰日归时,再有辛金相生,虽在午月火炽,亦可胜任其财,壬水旣返弱为强,不畏天干有土,盖土生辛印也,木火亦所弗忌。
壬日主生 未月 庚子 时 壬水生于未月,未虽阴土,而性则燥,故喜时上庚金之生壬,时支子水之助壬也,金水旣盛,虽土旺而日元不弱,但总忌丙火太阳之热烈,与戊土之重压,如得木以疏旺土,如甲年必为辛月,虽地支有巳午,亦是秀发之命矣。
壬日主生 未月 辛丑 时 未月土旺,此时壬水,原赖金生,时为辛丑,丑未冲而土不壅塞,但较水势不盛,必可畅流无阻,而无黄河改道之弊矣,土去生金,则辛金母气亦健,不过三伏炎天,大忌丁火伤辛,卽午火亦忌,土旺且多,当然不喜再见,金土木三者平均,卽是佳命。
壬日主生 未月 壬寅 时 壬日而时又透壬,同气有情而得助,虽生土旺之未月,倘不致十分受窘,时落于寅,虽可疏土,然系丙戊之长生,所以天干不可再见丙戊为第一条件,年月能逢金以生之,并点缀少量之阴木阴火,卽是大用之造矣。
壬日主生 未月 癸卯 时 壬水生于季夏,土旺用事,水力不强,时逢癸卯,喜卯木之制土,且卯未之会局,又有癸水助之,则克水之土力以减,但夏令水易干涸,须再得金,以发其源,有金必贵,无金则庸,盖无疑义矣。
壬日主生 未月 甲辰 时 壬生未月,时落甲辰,土多且旺,甲木疏土之力不足,日主克泄交加,必须岁月之间,得金以泄旺土,生衰水,再见另木为补助,始是优等之造,火土之当忌,自在想象中矣。
壬日主生 未月 乙巳 时 季夏己土司权,壬水日元受其克制,则时上疎土之乙木,允为喜神,惜乎时临巳火,乙去生巳,巳来生土,致使助土之效能,多于克土之应用矣,最好巳中庚透,日坐申金,或为辛亥年命,不失中上之命格。
壬日主生 未月 丙午 时 壬水生于土旺用事之未提,再逢丙午财临旺地之时元,火土重重,使壬水大受威偪矣,补救之道,唯有庚壬俱透,而申亥在支,庶几势均力敌,否则财官旺而日主弱,再逢旺地必倾,若见子丑相冲,亦降格以求之意也。
壬日主生 未月 丁未 时 丁与壬合,化则为木,月建在未,须在土旺用事之前,方可言化,若已进土壬,支见两未,再有未中丁火,透而生土,财官太过,火土为病,水木为药,然卽水木出干,而壬尚无根,故尤以干支见金为要着也。
壬日主生 未月 戊申 时 土旺用事之时,而时干见戊,使未月之壬水,受制极深,幸也,时支为申,金以生水,壬得长生,不过尚嫌杀重,须得木以制杀,然有木又须水,因弱水畏木盗泄也,金如孟母之贤,火则助桀为虐。
壬日主生 未月 己酉 时 月令未中藏己,出露时干,虽阴土而嫌太过,喜得时临于酉,壬水得其相生,以成官印相生之格,然而尚嫌金少,须得辛金出干,则印绶得禄,水源不竭矣,切忌丁午二火,以伤其印,丙亦不宜,巳火无碍,以巳酉会局故也。
壬日主生 未月 庚戌 时 壬水生未月戌时,皆系燥土,受克甚重,所喜庚金枭印,透于时干,泄土生水,以庚为用,柱中如无木,则土总嫌厚,但有木而无水,则无根之木,易受庚金斵(ㄓㄨㄛˊ)丧,卽使水木并见,还要无火克庚,始臻上乘。
壬日主生 未月 辛亥 时 壬水得禄于亥,再有正印之辛,虽在土旺之未月,似可返弱为强,但因亥未会局,卽有制土之功,亦有泄水之累,区区辛金,力犹不足,还须支坐申酉,以助生机,苟能如是,则虽有火土出干,亦不为害矣。

Nitrile and Latex Glove in malaysia.

Tuesday, June 30, 2020
- POWDER FREE

- Made in Malaysia

- Available sizes: XS, S, M, L, and XL

- Palm textured - AQL water leakage: 1.5

- Glove Weight: 5g to 6.5g - Glove Length: 240mm to 300mm

- Meet or exceed ASTM and EN glove standards

- Suitable for medical, cleanroom and general industrial applications

Produced from high-quality natural rubber to prevent contamination and protect against harmful substances; glove. Chlorinated surface for easy donning and superior elasticity for ease of use.





Malaysia glove size available for : XS, S, M, L, XL.

Video below shows our Malaysia factory producing nitrile gloves :


Video below shows we are delivery Glove Ready Stocks from Malaysia :


Video below shows our Ready Stocks of Glove in Malaysia :


Video below shows our glove factory in Malaysia :


The following PDF files shows how to grab ready stocks glove in Malaysia at this moment :
Grab-Ready-Stock-Glove-Malaysia.pdf

Gloves-in-Malaysia-2020.pdf

The disadvantage of buying cheaper price glove :
*** Quality is not guaranteed, you are wasting money to get a bad quality product.
*** Poor hygiene (recycled materials / second-hand gloves for resell).
*** The risk of disease transmission.
*** Easy to fall into the trap of scammer

Payment :
Bank TT = Buyer bear the risk.
Escrow and LC = Seller bear the risk (Many scam case happen when stocks delivered to buyer country and then the custom and shipping agent and buyer are working together to cheat the seller, causing the seller loss the stocks).

You as a buyer don't want to bear the risk for bank TT payment, because too many scammer out there.
We as seller don't want to bear the risk for Escrow and LC payment, because too many scammer out there.

So it is better we deal with COD. Meet up make payment on spot and get products on spot. After 1st few deal to gain the trust between us, then next order we use other easier payment method for more convenience.

Product :
Nitrile Glove and Latex Glove

Welcome enquiry for the price.

Please let us know your following order details :
Model : Nitrile or Latex ?
Qty box :
Ship to country :
Any delivery schedule :

We do sell many other personal protective products lists at
https://ppemalaysia.com

We do wholesale, agents, retail. Welcome for enquiry .

whatsapp : (Malaysia) 016-4833944 / email : gage_ang@yahoo.com / facebook : https://www.facebook.com/caroline.paris.all

YXin

Saturday, June 13, 2020
3 places to update rank: a) a user purchase package then update all uplines' rank b) admin generate bonus then update all users' rank all 1-star to 5-stars need inactive members from difference lines

---------------------------------
invoice_pv VS pv_sub_total VS temporary_pv

invoice_pv (tbl_product_order) = to show pv on invoice (bonus wont calculate pv of package that allow for reselling, so although we show how much pv user get from invoice, he cannot get bonus from this invoice_pv)

temporary_pv (tbl_product_order) = store pv of package that allow for reselling.

pv_sub_total (tbl_cart) = store pv of the product and package that NOT allow reselling.

Example, When a user purchase Product A = 300pv and Package A 1000pv that allow resell by pin. So,
invoice_pv = 1300
temporary_pv = 1000
pv_sub_total = 300


---------------------------------
If client request allow admin top up pv wallet, then you have 2 options :
option 1 (Easy) :
controllers/secure/manage_product_order page allow edit pv textbox.

Option 2 (Hard) :
u need to edit controllers/secure/manage_product_order, ctrl + f to find "PV credit wallet entry start", remove the comment out. Then do the following 3 things :
1) add pv wallet on admin manage member page.
2) add pv wallet on left menu on client site.
3) edit all bonuses base on pv wallet (tran_account = 9) instead of tbl_cart "pv_sub_total"

---------------------------------
Note :
1)If new register acc didnt put any sponsor, then it will auto asign company user_id 141 as sponsor.

2)When a user purchase a package, but his upline didn't purchase package yet. So Direct Sponsor bonus is not yet payout. Admin need to click "Generate Direct Sponsor Bonus" everyday to check and apy DSB incase his upline already purchase new package on any day within 7 days.

---------------------------------

update rank code structure for admin approve package :
step 1 : $this->common->update_memeber_ranks($order_data['user_id']) on Manage_product_order;
Step 2 : common.php > update_rank_LST
step 3 : common.php > directDownRank (I have edited logic here)

---------------------------------

Todolist in future :
1) LST withdraw only can be done on 16 / 1 of month

2) fix hidden bug:
user can use this trick to redeem all register wallet.

company allow 1 ic register many acc? if yes he will register new acc with register wallet credit, then delete package, then reorder new package with register wallet credit, then delete package, then reorder new package with register wallet credit until redeem all register wallet.

if company not allow 1 ic register many acc, he also 1 ic keep doing this over and over again.

3) bfm delete package no need debit out coin
but lst delete package need to debit out coin.

4) prevent admin click 2 times approve package debit out cash wallet 2 times.

5) prevent admin click 2 times delete package credit into cash wallet 2 times.

6) upline can use register wallet to register 3 downlines at the same time, system MUST check if upline's register wallet is enough credit for the 3 new packages.

how to show code snippet in blogger or blogspot easily? Easy 1 step solution!

Thursday, June 11, 2020
You just need to wrap your codes within <textarea>

Example :

Demo :

Demo Link : https://ye5.blogspot.com/2020/06/stone-of-coding.html

Stone of Coding

Thursday, June 11, 2020
If mysql use Group By, then only can select 1 row of record but u still want to select multiple record, then cannot use Group By. Solution :
Split Left Join query into two queries. Select first table then foreach loop select another table.
Example at Yxin project : controllers/member/Order.php

-------------------------------
Cannot echo for debuging on common.php because it will show error "array or variable is not defined". Solution use if(!empty($data)) :

-------------------------------
Cannot update records WHERE id In (12,32,47). Solution is either add quote for string or remove quote for number :

----------------------------------
check carefully u are using getAllRec or getSelectedOneRow :
$childOfchildData = $this->getAllRec(
VS
$childOfchildData = $this->getSelectedOneRow(

If using getAllRec, then u need foreach loop to echo db record.
If using getSelectedOneRow, then no need foreach loop.

----------------------------------

How to use Adobe Premiere Pro

Thursday, June 04, 2020
How to rotate video?

How to export with best quality?
answer : increase to 15 Target bitrate (MBPS), but it will render video become very slow like 2 hours. Not worth, better not using Premiere, better change to use After Effect.

Medical Goggles Anti Virus

Wednesday, June 03, 2020
Medical Goggles for sale in Malaysia.



Video explain Medical Goggles :


Video hows the comparison between Medical Goggles VS Industry Protective Gloves :

Tyvek Protective Coverall Suit anti-virus for sale in Malaysia

Sunday, May 24, 2020
Tyvek Protective Coverall Suit anti-virus for sale in Malaysia.



Video :

CPE Isolation Gown anti-virus for sale in Malaysia

Sunday, May 24, 2020
CPE Isolation Gown anti-virus for sale in Malaysia.




Video :

Face Shield anti-virus for sale in Malaysia

Sunday, May 24, 2020
Face Shield anti-virus for sale in Malaysia.



Video :

38gsm Disposable Protective Coverall Suit anti-virus for sale in Malaysia

Sunday, May 24, 2020
38gsm Disposable Protective Coverall Suit anti-virus for sale in Malaysia.


Video :

45gsm Proguard Coverall suit anti-virus for sale in Malaysia

Sunday, May 24, 2020
45gsm Proguard Coverall suit anti-virus for sale in Malaysia.


Video :

Yellow 30gsm Non Woven isolation Gown anti-virus for sale in Malaysia

Sunday, May 24, 2020
Yellow 30gsm Non Woven isolation Gown anti-virus for sale in Malaysia.


Video :


Malaysia Ready Stock.

Ship out within 1 day.




Zoom in the fabric. It is water waterproof.

Product :
Yellow 30gsm Non Woven isolation Gown anti-virus

Price :
RM12.3

Postage Fee :
West Malaysia = RM 8
Sabah / Sarawak = RM 13
USA = USD 12
All other international countries = USD 8

We do sell many other personal protective products lists at https://drive.google.com/drive/folders/1MaFtq3U7GdFe9CfpZwXTfzcwiriZZ22Z

More product detail at www.ppemalaysia.com

We ship worldwide.

We do wholesale, agents, retail. Welcome for enquiry.

whatsapp : (Malaysia) 016-4833944 / email : gage_ang@yahoo.com / facebook : https://www.facebook.com/caroline.paris.all

AICARE Medical Infrared Thermometer for sale in Malaysia

Sunday, May 24, 2020
AICARE Medical Infrared Thermometer for sale in Malaysia.



Video :

Disposable 3-Ply Masks anti-virus for sale in Malaysia

Sunday, May 24, 2020
Disposable 3-Ply Masks anti-virus for sale in Malaysia.



Video :

Disposable YY T Medical Masks anti-virus for sale in malaysia

Sunday, May 24, 2020
Disposable YY/T Medical Masks anti-virus for sale in malaysia.


Video :

How to use Adobe After Effect

Wednesday, May 20, 2020
Cut / Split Video :
Move the mark to the timeline where you want to cut /split it then press CTRL + SHIFT + D

-----------------------------------------
Merge Video :


--------------------------------------------
Increase Timeline :




--------------------------------------
Export Video / Save video :
Top menu there click "Composition" > "Add To Render Queue"
double clikc Lossless > H.264 > tick Audio Output 48000 kHz


--------------------------------------
Add image to video :
If you cannot drag and drop image file to adobe after effect, then just use photopedia to resave the image, and then drag and drop new image file to adobe after effect.

--------------------------------------
Preview no sound?
Go to Composition > preview > audio

--------------------------------------
Sound / Audio delay?
It is because frame rate 29,16,5,30,26 so many difference frame rate in the video, you need to make all frame rate 30. Solution :
1) Download and Install HandBrake.
2) Open HandBreak, go to Tools > Preference > Frame rate set 30. Click Start. Wait complete encoding the video.
3) Use Adobe After Effect open this new video file.
4) check and see audio is perfect now?

--------------------------------------
File Size too big?
It is because 2 reasons :
1) your original frame rate is 30 only but your adobe after Effect Composition setting 90 frame rate (3 x bigger file size).
2) your original bitrate is 6 but your adobe after Effect rendering format bitrate is 18 (3x bigger file size).
Solution :
Right click original video file, then select Property to check bitrate.
Go find out what is your video frame rate by checking the video recorder setting.
Then go to adobe after effect right click on composition > Composition Setting > set frame rate to 30.
Then go to File > Export > Add to Render Queue > H264 > format set bitrate to 7.

--------------------------------------
How to preview the video before export it?
Follow this video tutorial https://www.youtube.com/watch?v=mzn3luhKzB0

Steps :
1) Drag mark to any part of video and press B for starting point.
2) Drag mark to any part of video and press N for ending point.
3) Change "Full" to "Half" quality to faster the rendering preview process.
4) Press 0 to start rendering and preview.
5) press Space Bar to pauce.

Press 0 button. Then wait it render until the part u want to preview, then click the scene.

--------------------------------------
To import PNG transparent, go to Photopea save png file (tick Don't use Palettes)

--------------------------------------
How to Draw a circle? Click Square / rectangle tool, then press Q button until Circle come out.

--------------------------------------

LST

Sunday, April 05, 2020
Star Bonus Bug mostly is because the Star_Bonus_Paid remark put on column star_bonus_paid on tbl_product_order in database.

Example, page Confirm_add_star_bonus.php
$query3 = "SELECT user_id, id, package_amount, approved_on FROM tbl_flamingo_product_order
           WHERE user_id = $userid
           && star_bonus_paid =0
           && status=3 ";
$result3 = $this->db->query($query3);
$rows3 = $result3->result_array();

foreach ($rows3 as $row3)
{
    $package_size = $row3['package_amount'];
$individu_total_package_size = $individu_total_package_size + $package_size; //for total up 2 packages of Chin Yoke Lan
}
if($individu_total_package_size >= 10)
{
//payout star bonus
//bug here, $individu_total_package_size == 0 is because star_bonus_paid = 1 already.
//company payout total 20% of star bonus, but when 5% star bonus payout, package already got remark star_bonus_paid = 1, so the balance of 15% won't be paid out. It is bug.
}
?>

--------------------------------------------

Star Bonus confirm button function bug :

Bug :
formula is
usd1500 package size * 5% bonus rate - 3% bonus rate paid = 2%;

you insert star_bonus_paid 2% into database. So when loop to next downline, it become :

usd1500 package size * 2% paid last time - 5% bonus rate - 3% bonus rate paid = 0%;

that's why you should not insert star_bonus_paid  into database before all downlines get credit in wallet. It mean u should put in the code of insert star_bonus_paid  into database at the most bottom of the page (mostly at Company payout Total there).

----------------------------------------------
There are two difference recursive loop for 2 difference DSB payout :
1) direct sponsor bonus payout immediately on new package order :
recursive loop at function direct_sponsor_bonus_payout_immediately()

2) direct sponsor bonus payout generated by admin manually :
recursive loop at function loop_get_three_uplines()

bfm

Wednesday, February 12, 2020
change profit and bonus payout day from 1 next day to 3 next day
1) application/controllers/secure/Flamingo_bonus_settings.php
2) application/controllers/secure/Flamingo_profit_settings.php
3) application/client.bfm.expert/application/models/Member_model.php

To get mutured date function
view/inc_flamingo_statistic
Member_model->get_flamingo_order_approve_date($this->session->userdata('WDW_MEMBER_LOGIN_ID'));
              if ($flamingo_order_approved_date != "0 Package"){
                    echo date('d/m/Y',strtotime('+21 days',strtotime(str_replace('/', '-', $flamingo_order_approved_date)))) . PHP_EOL;
              }else{
                    echo "0";
              }

-----------------------------------------------
To get flamingo package purchase step 1 to 3
javascript is at application/views/member/Flamingo_product.php
php is at application/controllers/member/Flamingo_product.php
html is at application/views/member/inc_flamingo_step1.php
application/libraries/Common.php

-----------------------------------------------
To echo $total_invested on dashboard
file 1 : application/views/member/dashboard.php : $this->load->view("member/inc_statistics");
file 2 : application/views/member/inc_statistics.php : $total_invested;
file 3 : application/libraries/Common.php : function getTotalInvested($user_id=0){}
file 4 : application/controllers/member/Dashboard.php : $data['total_invested'] = $this->common->getTotalInvested();

-----------------------------------------------
To edit show flamingo % from 9 to 11pm
application/controllers/member/Dashboard.php

-----------------------------------------------
Possible bugs :
1) time : flamingo package purchase after 18 feb 2020 only need check after 3 days show profit % and get profit.
2) monday tues wed thurs friday difference profit % (if else statement might have bug)
3) not show downline if upline account is inactive (mysql miss out display upline)
4) user who purchase flamingo package but not bfm package, rank = 0

--------------------------------------------
Flamingo Profit % ON/OFF status at admin site affect :
1) calculate profit on admin site
2) show % jumping at time on admin site
3) show % on member's dashboard
4) payout to ewallet function

-----------------------------------------------
javascript function change_status(id, url) is save at
application/views/secure/inc_footer.php

------------------------------------------------
sample code to get multiple row records from database for each multilevel downline :
views/flamingo_mygroup_newsale.php
controls/flamingo_mygroup_newsale.php

-----------------------------------------------
ctrl + F search keyword "diff"
update the following page :
1) application/controllers/secure/View_flamingo_bonus.php
2) application/controllers/secure/Flamingo_bonus_settings.php
3) application/controllers/secure/Flamingo_profit_settings.php
4) application/libraries/Common.php
5) application/controllers/member/Flamingo_mygroup_newsale.php
Note : becareful o.created_on, p.created_on, created_on

---------------------------------------------
Css file path at asset/admin/css/wcss_member.css

Your Password May Be Compromised. Fixed!

Monday, February 03, 2020


If you found your website pop up this error "your password may be compromised" on google chrome, you may fix it by 3 difference solutions below :

1) Go to Google Chrome browser setting > security / privacy > disable safe protection as screenshot below :



---------------------------------------

2) enable "Enforce HTTPS" from your server like Godaddy, Hostgator, Siteground.

---------------------------------------

3) Do the following steps :

1) click the Red color "Dangerous" from address bar https there.

2) select the last option "Site Setting".

3) Allow the last option "Insecure content".
4) Close this tab.
5) Open the previous that where you see the Red Color "Dangerous" on address bar.
6) Click "Reload".
7) Open new tab and try register / login to see if the problem is solve?

Birthdate Numbers in the Pythagorean triangle m6 success number

Sunday, January 26, 2020

Meaning Of Numbers as per “Power Of Numbers”

One ( 1 ) is independent, leadership, self, alone but attracts backstabbers.
Two ( 2 ) is commucation, talkative, indecisive but soft hearted.
Three ( 3 ) is action, fast, aggressive, hot temper, impatient but spiritual.
Four ( 4 )  is planner, intelligence and posses wisdom.
Five ( 5) is direction, principle, stubborn, destruction, busy obstacles and emotional.
Six ( 6) is wisdom, wealth and family oriented.
Seven ( 7 ) is lucky and attracts supporters.
Eight ( 8 ) is responsible, busy,  stressful and hot temper.
Night ( 9 ) is success, business minded but greedy.

Meaning Of Numbers (Numerology) and Personality

Numbers
Positive Traits
1
Leadership skill, independent, goal-getter, righteous.
2
Good communication skills, calm and collected, friendly.
3
Doer, proactive, clarity in thoughts, creative.
4
Good in strategizing, intelligent, knowledge-seeker, extrovert, puncture.
5
Good sense of direction, curious, good reflexes, loves freedom.
6
Wise, artistic, imaginative, strong family values.
7
Good interpersonal skill, good analytical skills, strong religious faith, lucky
8
Responsible, trustworthy
9
Optimistic, liberal, business minded, loves to dream

Number
Negative Traits
1
Stubborn, self-centred, lonely.
2
Indecisive, timid, not assertive, soft hearted.
3
Impulsive, bad-tempered, flippant, mischievous.
4
Insecure, impatient, overly direct, slow.
5
Stubborn, destructive, short-tempered, impatient for improvement.
6
Materialistic, egoistic, proud.
7
Procrastinate, careless, indecisive.
8
Vain, easily worried, oppressed, lack of order when working
9
Emotional, unrealistic, greedy, not meticulous, loner.

Cannot copy paste on Photopea. Fixed!

Monday, January 13, 2020
Your photopea.com suddenly is not able to copy paste printscreen / image? It is just because you have accidentally disable clipboard function on your browser. Please follow the solution at the below screenshot to enable the clipboard function on your browser then problem will be fixed. Watch the youtube video for the solution :

Codeigniter

Saturday, December 21, 2019
Problem : Change from http to https :

Step :
Edit .htaccess file adding the following code :
    RewriteCond %{HTTPS} off
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Then,
1) go to cpanel file manager directory :
public_html/crm/application/config

or
go to filezilla directory :
/var/www/html/crm/application/config

2) Ctrl + F find http and change all of them to https.



-----------------------------

Problem : Edit page content.
Step : Cpanel > public_html/client.bfm.expert/application/views/member/network.php

-----------------------------
Migrate website to new server :
Edit 3 files :
1) /application/config/constant.php
2) /application/config/database.php
3) /application/config/config.php

if page error :  No input file specified.
Solution : go edit .htaccess file add ? after index.php become index.php?

If 404 not found, then check folder permission. Change folder permission from 0750 to 0755 (tick allow read and execute for world)

If 403 error or ajax error, then delete / from ajax code url. Eg : 2aek.com/ replace by 2aek.com

If sub folder, config.php should look like this :
else if($_SERVER['HTTP_HOST'] == "2aek.com")
{
$base_url = 'https://2aek.com/zac-work/';
}

----------------------------
change Email Sender FROM for email verification :
file path : application > config > constants.php
database : tbl_site_setting > scroll to right find column Email.

---------------------------
php mysql code file path at :
application > controllers > member > Register.php

--------------------------
order package save poa into pdf file code path :
controllers/member/Product.php

-------------------------
To echo $total_invested on dashboard
file 1 : application/views/member/dashboard.php : $this->load->view("member/inc_statistics");
file 2 : application/views/member/inc_statistics.php : $total_invested;
file 3 : application/libraries/Common.php : function getTotalInvested($user_id=0){}
file 4 : application/controllers/member/Dashboard.php : $data['total_invested'] = $this->common->getTotalInvested();

To echo $member_active_status on dashboard
file 1 : application/views/member/dashboard.php : $member_active_status = $this->Member_model->checkMemberKycStatus()
file 2 : application/models/Member_model.php : function checkMemberKycStatus($user_id=0){}

-----------------------
To change timedate timezone:
application/constant.php

------------------------
javascript and jquery file at
application/views/member/inc_common_validation_all.php

-----------------------
To check if package purchase date is greater than a specific date :
To check if today is 3 days after package purchase date :
1) mysql WHERE  .... && ((created_on < '2020-02-18') || (created_on > '2020-02-18' && created_on <= SUBDATE(CURDATE(), INTERVAL 3 DAY)))";

2) mysql WHERE ...
AND ((o.created_on < '2020-02-18') OR (o.created_on > '2020-02-18' AND o.created_on <= SUBDATE(CURDATE(), INTERVAL 3 DAY)))

3) WHERE... AND DATEDIFF(CURDATE(),created_on) >= 2

   
-----------------------------------------------
javascript function change_status(id, url) is save at
application/views/secure/inc_footer.php

-----------------------------------------------
error 404 page not found
if u want to create a new page,
Step 1 : create html at view/withdraw_flamingo.php (must 1st character capital big, _ small capital
Step 2 : create php at controllers/withdraw_flamingo.php
Step 3 : add class and load->view at the php file that u created on (Step2) :
class Withdraw_flamingo extends CI_Controller
{ function index($tran_account=0)
{
$this->load->view('member/withdraw_flamingo ', $data);
}
}

----------------------------------------------
if ajax error, then delete html may fix ajax error

-------------------------------------------
if return 1 instead of 1500
then change
 $data['Rows1'] = $Result1->row_array();
to
$data['Rows1'] = $Result1->result_array();

--------------------------------------------
ajax sort has bug?
file path : application/controllers/secure/Manage_flamingo_product_orders.php

$column_order = array('u.id','u.id','u.created_on','unique_code', 'm.first_name AS fname', 'u.package_amount', 'u.user_sign', 'u.auto_renew','u.status', 'u.poa_path', 'u.package_id');

The code above must in correct sequence from left to right fields on html table in views folder.

-----------------------------------------
ajax echo database record on to html table
file path : application/controllers/secure/Manage_flamingo_product_orders.php

foreach ($Rows as $Res)
{
$no++;
$row = array();

$row[] = $no;
$row[] = 'F'.PACKAGE_PREFIX.str_pad($Res['id'], 6, '0', STR_PAD_LEFT);
$row[] = $Res['created_on'];
$row[] = $Res['unique_code'];
$row[] = $Res['fname'];
$row[] = $Res['package_amount'];

----------------------------------------
simple database query echo on html page :

$placement = $this->common->getSelectedOneRow("placement",  "tbl_user_master",  "WHERE user_id = '".$this->session->userdata('WDW_MEMBER_LOGIN_ID')."'");

if ($placement['placement']  == ""){

---------------------------------------------
SUM(amount) no need to use getAllRow, you can use getSelectedOneRow :

$withdraw_pending = $this->getSelectedOneRow("Sum(withdraw_amount) AS withdraw_pending_amount","tbl_withdraw_request","WHERE user_id = '".$user_id."' AND status=0 AND tran_account=$tran_account");

-------------------------------------------
Select multiple records from database :

$withdraw_pending = $this->getAllRec("Sum(withdraw_amount) AS withdraw_pending_amount","tbl_withdraw_request","WHERE user_id = '".$user_id."' AND status=0 AND tran_account=$tran_account");
    foreach ($withdraw_pending as $row2)
        {
            echo $row2["withdraw_amount"]."
";
            //$pending_amount=$row2["withdraw_amount"];
            //$total_pending+=$pending_amount;
        }

-----------------------------------------------
SQL statement Where Clause && syntax :
$this->common->updateRecord("tbl_ewallet",$up_data1, "customerid = '" . $user_id_arr . "' AND id = '" . $bonus_id_arr . "'");

--------------------------------------------

If purchase package on sat, then wont get % jumping and profit on Tues, only will get them on Wednesday :

using mysql WHERE .... AND ((DAYOFWEEK(created_on) IN(0,1,2,3,4,6)) OR (DAYOFWEEK(created_on) = 5 AND DAYOFWEEK('".CURRENTDATE."') = 1 AND DATEDIFF('".CURRENTDATE."',created_on) >= 4) OR (DAYOFWEEK(created_on) = 5 AND DAYOFWEEK('".CURRENTDATE."') IN(0,2,3,4,5,6)))
     ORDER BY created_on ASC;");

or using php
$purchase_day = date('D', strtotime($created_on));
$today_date = date('Y-m-d', time());
$diff_day = date_diff(new DateTime($today_date),new DateTime($created_on));
//echo $diff_day->format("%a"); //haha
//if($diff_day->format("%a") > 60){ echo "yes"; }else{echo "No";}
//echo $purchase_day;
if ($purchase_day == "Sat" && date("l") == "Tuesday" && $diff_day->format("%a") < 7 ){
    $created_on = 0;
}

-------------------------
ajax call php function :

Search "drawCallBack" on page (inside ajax there). Paste the following code under this line :
//page loaded immediately check if 1st flamingo package auto renew is yes or no, then update all top up package auto renew in database
var arTp = $('.artp');
                        var arTpArray=[];
                        for(var i=0; i                            arTpArray[i] = $(arTp[i]).text();
                        }
                     
                        var arPurchase = $(".arpp").attr('id');
                        if (arPurchase == "Yes"){ var oppAR = "No"; var currentArP = 1;}
                        if (arPurchase == "No"){ var oppAR = "Yes"; var currentArP = 0;}
                        if ($.inArray(oppAR,arTpArray) > -1) {
                            update_auto_renew_to_database(currentArP);
                        }

---------------------------------------

Ajax Datatable error / 500 error mostly because mysql syntax error,
you may create a html page try to query database by your mysql to check where is the syntax error.
Previous case was WHERE order_method == 0; is wrong, should be order_method = 0;

----------------------------------------
WEEKDAY : 0=Monday, 1=Tuesday, 2=Wednesday, 3=Thursday, 4=Friday, 5=Saturday, 6=Sunday

-------------------------------------
$last_top_up_day = date('d/m/Y',strtotime('+21 days',strtotime(str_replace('/', '-', $flamingo_order_approved_date)))) . PHP_EOL;

-----------------------------------
mysql update multiple rows

$up_data1['star_bonus_per'] = $v1_star_bonus = $this->common->custom_safe_string($this->input->post('v1_star_bonus')); $up_data2['star_bonus_per'] = $v1_star_bonus = $this->common->custom_safe_string($this->input->post('v2_star_bonus')); $up_data3['star_bonus_per'] = $v1_star_bonus = $this->common->custom_safe_string($this->input->post('v3_star_bonus')); $up_data4['star_bonus_per'] = $v1_star_bonus = $this->common->custom_safe_string($this->input->post('v4_star_bonus')); $up_data5['star_bonus_per'] = $v1_star_bonus = $this->common->custom_safe_string($this->input->post('v5_star_bonus')); $this->common->updateRecord('tbl_agent_qualificaiton',$up_data1,"id=1"); $this->common->updateRecord('tbl_agent_qualificaiton',$up_data2,"id=2"); $this->common->updateRecord('tbl_agent_qualificaiton',$up_data3,"id=3"); $this->common->updateRecord('tbl_agent_qualificaiton',$up_data4,"id=4"); $this->common->updateRecord('tbl_agent_qualificaiton',$up_data5,"id=5");

----------------------------------------
change all email address in database
UPDATE tbl_user_master SET user_email = CONCAT( `unique_code` , "@test.com" );

-----------------------------------------
Array with value only, without key :
global $temp_paid_star_bonus_package; //declare at function getChildren() && function printList() $temp_paid_star_bonus_package = array(); //declare at function getChildren() $single_package_id= explode("#",$multiple_package_id); foreach($single_package_id as $package_id) { if($package_id != 0) { $temp_paid_star_bonus_package[] = $package_id; //add value into array } } foreach($temp_paid_star_bonus_package as $fpackage_id) //retrive value from array and insert into database { $up_data1['star_bonus_paid'] = 1; $this->common->updateRecord('tbl_flamingo_product_order',$up_data1,'id='.$fpackage_id); }


----------------------------------------------
Array with key and value :
if got bug then might be because u didn't declare $temp_paid_breakaway_bonus_ref = array(); at the first function index()

$member_got_bonus_already=array(); //declare at function index()
global $member_got_bonus_already; //declare at function printList()

//deduct previous already paid out star bonus
if (@array_key_exists($userid, $member_got_bonus_already)) //retrive value from array
{ //check array if this member already get bonus previously
$individul_paid_bonus_rate = explode("#",$member_got_bonus_already[$userid]);

foreach($individul_paid_bonus_rate as $i_p_b_r) {
  $final_star_bonus_rate = $final_star_bonus_rate - $i_p_b_r;
}
$star_bonus_receive = $individu_total_package_size * $final_star_bonus_rate / 100;
}else{

}

//insert value into array sample 1 :
if($star_bonus_receive != "" || $star_bonus_receive != 0)

if (@array_key_exists($userid, $member_got_bonus_already)) //userid 123 => bonus 15# bonus 200 # bonus 39
{
  $member_got_bonus_already[$userid] = $member_got_bonus_already[$userid] . "#" . $final_star_bonus_rate;     
}else{
  $member_got_bonus_already[$userid] = $final_star_bonus_rate; //save member_id and bonus_rate into array, so later his upline will deduct bonus_rate from this array.this array.
}

}

//insert value into array sample 2 :
foreach($single_package_id as $package_id)
{
if($package_id != 0)
{
if (isset($package_id) AND isset($temp_paid_star_bonus_package) AND array_key_exists($package_id,$temp_paid_star_bonus_package))
{
$temp_paid_star_bonus_package[$package_id] = $temp_paid_star_bonus_package[$package_id] + $final_star_bonus_rate;
}else{
$temp_paid_star_bonus_package[$package_id] = $final_star_bonus_rate ;
}
}
}

//if want to retrive both keyand value
foreach ($member_got_bonus_already as $key => $value )
{
echo $key;
echo $value;
}

--------------------------------------------------

NOT Exist mysql query :

$user_tree = $this->getAllRec("u.user_id,(SELECT COUNT(o.user_id) FROM tbl_user_master o WHERE o.sponsor_id = u.user_id AND o.user_type = 2 AND o.status = 1 AND NOT EXISTS (
  SELECT p.user_id
  FROM tbl_flamingo_product_order p
  WHERE (p.user_id = u.user_id OR p.user_id = o.user_id) AND p.status=3)) AS ChildCnt",

"tbl_user_master u",
"WHERE u.sponsor_id = '".$user_id."' AND u.user_type = 2 AND u.status =1 AND NOT EXISTS (
  SELECT p.user_id
  FROM tbl_flamingo_product_order p
  WHERE p.user_id = u.user_id AND p.status=3)");

Becareful, if upline is not exist in other table, then won't show this uplines, so will causing bug not showing all downlines of this upline. (missing downlines bug)

--------------------------------------------------

NOT Exist mysql query WHERE id in array ()
$data['member'] = $member = $this->common->getAllRec("o.user_id,o.username,o.first_name, o.last_name",
"tbl_user_master o",
"WHERE o.user_id IN (".$my_tree_ids.") and o.status != 3 AND o.user_type = 2
AND NOT EXISTS (
      SELECT p.user_id
      FROM tbl_flamingo_product_order p
      WHERE p.user_id = o.user_id AND p.status=3)
ORDER BY o.first_name ASC, o.last_name ASC");
}

----------------------------------------------------

Return string that extended by recursive loop :
Live demo at lifestartoday.com>library>common.php>loop_get_three_uplines()
Simple Live demo 2 at generate_user_unique_code() function at common.php file

Method 1 : Pass variable in function argument :
function test_loop($x_values,$x, $y)
{
    $x = $x + 1;
    if($x < 10)
    {
         $x_values[] = $x."#"; // insert item 2#,3#,4# into array
    }

    //loop again if y is not = 3;
    $y = $y + 1;
    if($y < 5)
    {
        return $x_values = test_loop($x_values, $x, $y); // need to put two return. 1 at recall loop function, another 1 at else statement
    }else{
    echo "gula"; //need to put the echo at else statement
    return $x_values;
    }
}

function abc(){
    $bababa = test_loop([],1,0);

    foreach($bababa as $fpackage_id)
    {
        echo $fpackage_id;
    }
}

abc();

---------------------------------------------------
Method 2 : declare variable by static
function test_loop($x, $y)
{
    static $x_values = array();
    $x = $x + 1;
    if($x < 10)
    {
         $x_values[] = $x."#"; // insert item 2#,3#,4# into array
    }

    //loop again if y is not = 3;
    $y = $y + 1;
    if($y < 5)
    {
        return test_loop($x, $y); // need to put two return. 1 at recall loop function, another 1 at else statement
    }else{
    echo "gula"; //need to put the echo at else statement
    return $x_values;
    }

}

function abc(){
    $bababa = test_loop(1,0);

    foreach($bababa as $fpackage_id)
    {
        echo $fpackage_id;
    }
}

abc();

-------------------------------------------------

Split a big functions into many small functions and pass value by many array from Controllers to Views sample at :
1) https://stackoverflow.com/questions/61550787/how-to-insert-key-and-value-of-an-array-into-another-array-key

2)https://stackoverflow.com/questions/61548454/how-to-pass-array-multiple-array-key-and-value-from-controllers-to-views-in-code

3) Common.php > function cal_sponsor_bonus()
4) Common.php > function loop_get_three_uplines()
5) Controllers & Views / Direct_sponsor_bonus_setting.php

--------------------------------------------------
error : Severity: Warning --> ini_set(): Headers already sent. You cannot change

maybe because u put end of php tag ?> at bottom of page, u need to delete it.

-----------------------------------
There are two difference recursive loop for 2 difference DSB payout for LST project common.php file :
1) direct sponsor bonus payout immediately on new package order :
recursive loop at function direct_sponsor_bonus_payout_immediately()

2) direct sponsor bonus payout generated by admin manually :

recursive loop at function loop_get_three_uplines()

---------------------------------------------------
Simple recursive loop to get all downlines :
function downline_v5_ids($user_id=0,$mydowns)
{

if($user_id != 0)
{
$user_tree = $this->getAllRec("u.user_id, u.rank, (SELECT COUNT(user_id) FROM tbl_user_master WHERE sponsor_id = u.user_id AND user_type = 2 AND status =1) AS ChildCnt",
"tbl_user_master u",
"WHERE u.sponsor_id = '".$user_id."' AND u.user_type = 2 AND u.status =1");
/* echo $this->db->last_query();  */

if(count($user_tree) > 0)
{
foreach($user_tree as $Res)
{
if($Res['rank'] == 1)
{
$mydowns[]=$Res['user_id'];
}
if($Res['ChildCnt'] > 0)
{
//if(!is_array($mydowns)){ //prevent error Severity: Notice --> Array to string conversion
$mydowns = $this->downline_v5_ids($Res['user_id'], $mydowns);
//}
}
}

}
}

return $mydowns;
}

---------------------------------------------------------

Get Method / Get value from URL :
example url : www.lifestartoday.com/member/wallets/report/3-1.html
1)wallets is php file name at Controllers/Wallets.php
2)report is function name in the php file.
3)3-1 is argument in the function.
So at Controller/Wallets.php u will see a function
function report($tran_account_ref_id)
{
 $explode_arr = explode("-",$tran_account_ref_id);
 $tran_account = $explode_arr[0];
 $ref_id = $explode_arr[1];
}


----------------------------------------
2) cannot update records WHERE id In (12,32,47). Solution is either add quote for string or remove quote for number :
----------------------------------
DataTables warning or responded with a status of 403 ()
Make sure Ajax url don't have / at the end of url. Eg :

----------------------------------
Language Chinese English :

----------------------------------
$total_direct_all_child_cnt = count($this->getAllRec("u.user_id, u.username, u.unique_code, u.user_email, p.id, p.status", "tbl_user_master u LEFT JOIN tbl_product_order p ON p.user_id = u.user_id","WHERE u.sponsor_id = '".$user_id."' AND u.status = 1 AND u.user_type = 2 AND p.status = 3", "GROUP BY u.user_id"));
----------------------------------
To debug :

----------------------------------
To pop up request security password for withdraw page :

----------------------------------
To debug direct sponsor bonus printlist(), just change hidden to visible

----------------------------------
Network tree chinese word not show :
Solution at https://stackoverflow.com/questions/8218230/php-domdocument-loadhtml-not-encoding-utf-8-correctly
File Directory : member/Controller/Network2.php > get_high_level_tree_member_data()

File Directory : member/views/network2.php > foreach($user_tree as $Res){


----------------------------------
Get latest new inserted id :

----------------------------------
Invalid argument supplied for foreach()
array foreach loop show error if array is empty :

----------------------------------
Show Pop up :
views/member/dashboard.php : views/member/dashboard.php :
Controller/member/Dashboard.php :

----------------------------------
one line easy : $prize_pool_db=$this->common->getSelectedOneField("prize_pool","tbl_site_setting","where id=1");
----------------------------------
mysql select date less than or equal today :


----------------------------------
Convert datetime format :

----------------------------------
Mysql WHERE compare date :

----------------------------------



Enter your email address:

Subscribe in a reader

Follow zac1987 on Twitter

Donation

If you feel my website is informative and it is useful for you, please donate some money to support me or buy me a drink. I will continues this good works. Thank you.