PHP-and-MySQL/C2/Common-Errors-Part-2/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:00 Khublei. Ngi pdiangsngewbha ia phi sha ka bynta baar jong ka jinghikai error jong ngi halor kumno ban lap ia ki errors bad kumno ban pynbeit ia ki.
00:08 Nga la khot ia kane "extrachar dot php" bad ka daw kadei haba ngi run ia kane.... to ngin phai biang,... nion ha "extrachar", ngi ioh ia kane ka error "Parse error in..." bad baroh kine bad ha ka line 6.
00:23 Ngim ioh kano kano ka jingtip ia kaba ngi khmihlynti lane kaba ngi khlem lynti lane kano kano kum kata.
00:32 Ngi leit sha ka line 6 kaba don hangne bad ha ka shisien peit kane ka lah ban i biang.
00:37 Tangba ha ka jingshisha ngi la ioh ia uwei u bracket ba tam hangne, te ngi ia delete ia utei bad phi lah ban iohi kane mynta ka treikam.
00:44 Bad mynta kane ka kham suk ban lap.
00:47 Tangba haba phi leh ia ki kam kum ki mathematical calculations, kum ka nuksa, kum ka adding, comparing bad kiwei kiwei. lada phi leh ia ki mathematical calculations kum kane bad phi klet noh ia ki brackets jong phi.
01:09 Teng teng ka long kaba suk bha ban pynbeit. Haba ngi run ia kane, kan nym paw eiei namar kine artylli kim iaryngkat iwei ia iwei pat.
01:18 Katei ka khlem ai ia kino kino ki errors.
01:20 Tangba lada nga pyndap sa uwei u bracket hangne, ngin ioh ia ka "Parse error".
01:28 Haba phi pynbeit ia ki if statements ba jynjar lane ki mathematical operations ba kyllain , phi dei ban check ba ki brackets ki iahap.
01:36 Shu pynthikna ba phi check na ka bynta baroh ki brackets lane kiwei kiwei pat kum katto katne ki characters kiba lah ban don hangtei.
01:48 Kum ka nuksa – to ngin buh ia u "a" hakhmat jong katei.
01:52 Peit – haba ngi phai biang , ngi dang ioh hi ia ka "Parse error".
01:56 To ngin iaid lait na kane. Refresh ia katei, ka dang ioh hi ia ka "Parse error".
02:00 Te, phi tip phi lah ban type eiei. To ngin weng ia kata.
02:04 Mynta kaba bud kaba ngan pyni ia phi kadei ka "missing page".
02:08 To ngan pyni ia phi ia ki errors na ka bynta kane. Nion ha ka "missing.php". Te, ngi ioh bun ki Parse errors kumba la iohi ha ka line 9.
02:17 To ngin hiar shapoh bad haei kadon ka line 9? Semicolon.
02:23 Biang. Map ia nga katei kam dei ba donkam. Te to ngin refresh sa shisien.
02:28 Biang. Te ngi la ioh ia ka "Parse error" ha ka line 18.
02:33 To ngin leit sha ka line 18.
02:37 Biang line 18 – kane ka line hangne, kaba nga kdew .
02:47 Te, kadon jingbakla aiu bad ka line 18?
02:49 Kam don content eiei ha ka line 18. Te ha kano ka rukom kan don ia ka error?
02:54 Bad ka daw na ka bynta katei kadei kumba nga la ong hashwa – ban check sawdong kane ka jaka.
03:00 Te, ngi hap ban check shajrong kumba katto katne line – shu ong 4 lane 5 lines shajrong.
03:06 Kaei kaba ngi don kadei ka "if" statement - "if $postedusername equals (==) 'Alex'", echo " You own PHP Academy" else echo "Hello $name".
03:17 Phi lah ban ong ba ngi don ia u curly bracket basdang bad u curly bracket bakut na ka bynta kane ka "if" statement hangne.
03:24 Balei kam treikam? Dei namar ngi lah sdang lypa ia ka "if" statement hangne hajrong.
03:30 Bad kane kadei ka jingthmu jong ka indentation bad ka jingmyntoi jong ka indentation.
03:36 Ha nga, lada nga peit ia kane na ka jingtip jong nga, nga tip ba namar une u bracket lah indent, utei u bracket dei ban indent hangne, ha kajuh ka line.
03:45 Te kumta u jah. Te, lada une u don hangtei bad lada utei lah indent hangne, te ngan tip ba na ka "if" statement ba hashwa ba hangne hajrong ha kaba ka block ka sdang hangne bad ka block ka kut hangne.
03:59 Tangba hangne , ka block ka sdang bad ym don u bracket ba kut hangne.
04:03 Ngan buh ia u hangne. Bad haba ngi run ia kane, hangne phi don! Ka sdang ban treikam mynta.
04:08 Te, lada phi klet ia ki characters, phin shem ba phi ioh ia ki jaka ba phylla na ka bynta ki errors.
04:14 Ha ka jingshisha, kane kam dei ka jaka ba phylla na ka bynta ka error tangba ngi ia ong "else", ka jingsdang jong ka block bad ka jingkut jong ka block.
04:20 Bad kaei kaba ngi iapeit kadei ka jingpynkut ia kane ka block mynta namar kane kadei ka block kaba ym pat shym la pynkut.
04:28 Te, ngi iaong ka line error kam dei ha ka jingshisha hangne namar ka donkam ia ka jingpynkut ia ka block hangne.
04:35 Mynta katei kan treikam, biang?
04:38 Te, shu peit ha ki katto katne ki lines hajrong bad peit haei phi lah ban don ia ka else khlem ka jingpynkut lane katto katne ki character kiba jah lane kiwei pat kiba phi donkam kiba jah.
04:49 Kaba bud, to ngin phai sha ka "getpost dot php".
04:53 Nga la pyndonkam ia ka error_reporting(E_ All) tang ban batai ia kane.
04:58 Kane kadei ban "demonstrate". Kane ka jait error kan sa shah report.
05:03 Kane kam mut "all errors". Kam dei ka list kaba kut noh jong baroh ki errors kiba lah ban report.
05:10 Kane kadei tang ka parameter na ka bynta kane ka function.
05:12 Kane kan ailad ia ngi ban peit ia ki katto katne ki errors kiba u user barabor un nym ong eiei. Nga mut phin nym pyndonkam ia kane lada phi hap ban pynmih la ka jong ka website. Tangba nga don ia ka jinghikai halor kane kaba phi lah ban iohi.
05:25 Te , kane kadei ka "get post" error.
05:28 To ngin leit hangne. Biang; te ngi don ia u variable ba kyrteng "data".
05:33 Une udei u GET variable bakyrteng "name".
05:38 U code jong ngi u ong : if this data variable exists, echo $data bad kane ka i kum ka program kaba ju long barabor.
05:47 Kam don kano kano ka error hangne.
05:49 Ngi shim katto katne ki variables hangne bad baroh ki treikam bad kam don ka line break error lane ka line terminating error ruh.
06:07 Ngi khlem klet eiei, ngim donkam ban buh eiei hapoh.
06:15 Tangba haba nga run ia kane ka page, ngi ioh ia ka notice.
06:18 Mynta kane ka dei ka "Parse error" kaba ngi la iohi hashwa. Kane kadei ka Notice.
06:27 Bad ka page kam lah ban treikam bha da ka jingdon kane ka error.
06:33 To ngan pyni iaphi – hangne nga ong "name equals alex" bad kane ka error ka jah.
06:41 Kane ka pyni ba kam don eiei kaba bakla bad u code jong ngi tangba kaba bakla hangne ha ka jaka banyngkong, kadei ba une u data variable um pat biang pura.
06:51 Ka iasyriem kumba ong "data equals absolutely nothing".
06:58 Hangne , to ngan ong echo variable alex bad kane kadei ka line 5.
07:05 To ngin refresh. "Undefined variable alex, Undefined index name".
07:11 Te, kaba ngi leh kadei – biang, to ngin sdang naduh basdang.
07:19 Kane kam pat biang lada ia ka kyrteng khlem pat batai ha ka header.
07:23 Namarkata data kam iaryngkat ia kaei kaei bad kumta ngi ioh ia ka error "Undefined index" kumba ngi ioh ia ka "Undefined variable" lada ngi echo ia u variable ubym pat dep set.
07:35 Te, ha mar ba ngi buh katto katne ki data hangne, kane ka error ka jah.
07:39 To ngin refresh .
07:41 Lada phi kwah ban iaid lait na kane ka initial error, kaba phi donkam ban leh kadei ban buh ia u "@ (at)" symbol hapdeng lane ha kaba sdang jong kane ka line.
07:50 Haba ngi refresh, ngim ioh eiei namar ym don error ba lah dep set.
07:55 Ym don get variable ba lah dep set. Bad ha mar ba ngi ong "name equals alex" ka name jong ngi la echo kumba ka code ka batai hangne.
08:04 Te, wat lada phi pyndonkam ia kane ka if data ka don, ha ka jingshisha kane kam don, lada khlem buh eiei ha ka. Te peit na ka bynta jong ki.
08:14 Tang katto ia mynta. Ha ka bynta ba khatduh, ngan leh ki artylli ki common errors . Ngin sa iashem pat bad phi.
08:20 Nga i Meboreen na Shillong, nga dubbed na ka bynta ka Spoken Tutorial Project.

Khublei Shibun.

Contributors and Content Editors

Meboreen Mary