PHP-and-MySQL/C2/If-Statement/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:00 Ngi pdiangsngewbha ia phi sha kane ka php Spoken Tutorial. Hangne ngin ia kren shaphang ka IF statement.
00:06 Lada phi lah thoh code teng mynshwa, phi lah ban dep iaid lyngba ia ka 'IF' statement.
00:11 Kam da don bun ki jingpher ha ka php. Ngan execute ia kawei mynta shiphang bad pyni ia phi.
00:16 Te, to ngin sdang.
00:18 Te, hangne kadei khyndiat shaphang ka 'IF' statement. Ka donkam ia ka condition.
00:23 Lada ka condition kadei True, ka execute shibynta jong u code.
00:28 Lada kadei False, kan sa execute ia kawei pat ka bynta jong u code.
00:32 Kum ka nuksa – kane kadei ka rukom long.
00:36 If – hapoh jong u bracket don ka condition ban tip lada 1 u iaryngkat bad 1.
00:41 Phi iohi ba nga pyndonkam ia u double 'equal to' sign hangne. Une u dei u comparison operator.
00:47 Ha kawei pat ka jinghikai ngin sa pule shaphang ki operators.
00:50 Ka pule kum 'is equal to' wat la kam dei kajuh kum 'equals'.
00:56 Haba ngi pyndonkam variables, ngi kwah ban ianujor ngi pyndonkam 'double equal to'.
01:02 Lada phi leit na ka bynta ka 'True' path, phi lah ban pyndonkam artylli ki curly brackets.
01:06 Ngin ia plie ia kawei hangne.
01:08 U code jong ngi un rung hapdeng jong ki brackets.
01:12 Lada ka dei 'Not True', ngin ong else.
01:15 Kajuh ka rukom long – te , artylli ki curly brackets.
01:17 Kum ka nuksa , if 1 equals 1 ngi ong echo 'True'.
01:23 Lada 1 um iaryngkat bad 1, kaei kaba ngin ioh ynda ngi run ia ka file jong ngi kadei False.
01:30 Namar ba 1 u iaryngkat bad 1, kaei kaba ngi ioh ynda ngi run ia ka file jong ngi kadei True.
01:36 To ngin pynkylla ia kane. Lada 1 equals 2, kaba kam dei, te ngin ioh False.
01:42 Te, ngi lah ban dep shna lypa ia kawei ka program ba suk ban iathuh ia ngi lada uwei u number u iaryngkat ia uwei pat.
01:49 Kane kadei ka application kaba i thamula na ka bynta ka program.
01:52 Te, ngan shu pyndap shuh sa khyndiat. Ngan shna khyndiat ka program na ka bynta ka password access.
01:58 Ngin sa ia buh ia u password ha u variable hangne.
02:03 Shu ong, ka $password kadei "abc".
02:05 Ngan pynrung ia u variable ha ka IF function jong nga da kaba ong:
02:11 if password, kynmaw double equals "def"
02:15 Bad ngan ong Access granted.
02:21 Nga pan map , nga la leh bakla. 'def' kadei ka password kaba ngi kwah ban pan na u user. 'abc' kadei ka password bad nga input ia ka ha ka system jong nga.
02:32 Te, lada kam iaryngkat 'def', ngan ong Access denied.
02:39 Ka password kaba nga la ai kadei 'abc'.
02:42 Ngin ianujor ia ka password bad ka 'def' kaba dei ka password ba la buh.
02:50 Lada kane ka iaryngkat bad 'def', ngin ong Access granted lym kumta Access denied.
02:57 To ngin pyrshang ia kane.
03:00 Access denied. Kane kadei namar ba ki passwords kim iadei.
03:05 Ha kane ka bynta, phin iohi ba nga la dep pynrung ia u variable.
03:10 Pynkylla ia kane sha 'def' bad ngin sa ioh Access granted.
03:18 Namar ba nga don ia kawei ka line jong u code bad sa kawei pat ka line jong u code hangne.
03:22 Nga lah ban iaid lait na kine ki curly brackets.
03:25 Ha nga, katei ka kham i khuid shibun.
03:29 Sngewbha kynmaw – kam don jingmut ban add ia ki curly brackets lada phi don tang kawei ka line jong u code na ka bynta ki IF statements ba suk kum kine.
03:37 Lada phin don ia kawei ka line hadien jong kawei pat hangne, phin donkam ia ki curly brackets.
03:42 Kum ka nuksa, to ngin set ia u variable ba thymmai hangne.
03:46 $access equals "Allowed".
03:52 Kane ka shu dei kawei pat ka line jong u code.
03:57 Tangba ynda nga pyrshang ban run ia kane, ngi ioh ia ka error.
04:02 Ka ong : an unexpected T_else on line 8.
04:08 To ngin wad ia ka line 8. Kadon hangne. Ka line shwa jong ka ka wanrah ka jingthud.
04:13 Kaba na kata ka daw ngi donkam ban pyndap ia ki curly brackets ban pynsuk na ka bynta ar ne bun tylli ki lines jong u code.
04:22 Ngi refresh ia kane bad Access is granted.
04:25 Mynta nga la set ia u variable bathymmai, access yn sa allowed.
04:29 Kane kam da don jingmyntoi than.
04:32 Tangba nga shu ai ia phi ia ka nuksa.
04:35 Phi lah ban iohi ba kane ka dang dei tang kawei ka line bad kine ki dei ki double lines bad phim lah ban kyllum lang ia ki.
04:40 Te , nga lah dep create ia u variable. Nga lah pynrung ia u ha ka 'IF' statement. Kyrmen kane ka long kaba iarap.
04:46 Da kane ngi la poi sha kaba kut jong kane ka jinghikai.
04:50 Nga i Meboreen na Shillong, nga dubbed na ka bynta ka Spoken Tutorial Project. Khublei shibun ia ka jingshahskhor jong phi.

Contributors and Content Editors

Meboreen Mary