State Exam WAD

You might also like

Download as pdf
Download as pdf
You are on page 1of 8
Bxamination : 2+! ooeRoom Subject : Web Application Dev. Duration : 90 minutes, ‘Table Student's Name Clase Signature : 9.18 Database Management System (DEMS) MAIMURMYWIHUBEINE nate PHP extension (10p1)? a. MySOL b. IeMoB2 ©. PostgreSat 4, Microsolt SOL Server 2. 8 DEMS AMyUIANDIAATASENS native PHP extension 1B.G1M:included) 84 include_once() HENSUAIN warming message islinnUicinNtiA snmp: yf path TUAiHHe Geyfieyyt Gianna requireg 84 require_once) TAPNSAUY sntweneurnigsstinnutcinmtsenriup: U path 1005 fe GefeypA(ropy? 1. Fatal error Termination of script No error Both a and b Lif! Method igusamitinuznGurps input MERLE: UAL (10py? i Ger k. POST 1. git GeT 8H Post m. Gegin GeT 8 PosT fi Cookdo 4 Session Qeupjeiyog:? Gnfeuiessutinsiyy (10p1) Paget 1. Cookie Graig studi Text tle tsthil Server ®t Session IQgndgdian’ 18 Binary fe ustisti Server 0. Cookie Grigiiwnt Binary we txtuS Ciont Ta Session iggnOgeue 78 Binary tie 1stitl} Server . Cookie griigitsdi Text fe tl Server a Session ieggnOgtsd 8 Text fle Uti Client 4. Cookie gridgtdih Toxt We tstut ction Th Sessontaygndgsis istuilint Server d.jHenmmenpimanyjmtisims database jan Magdwununvynay Gyles notanufuypisinehinaseopn: 6 eonnect_error) « {ie("Connection talod:*. $sonn->eonnect_error); , $sql = "SELECT * FROM tbl_studont’; Sresuit = Sconn->query($sq); it (Sresun->num_rows > 0) ¢ while(Srow = Sresut-fetch_assoc)) ¢ ‘echo "id: *.Srow(d'].* - Name: *. Srow/"rstname".**. ‘Srow[ lastname"). “
"; > delse ( ‘echo "0 results": > Sconn->close(); Br > Page ak error) ¢ die(*Connection failed: * . $conn->connect_error): > ‘$sql = “SELECT * FROM tbl_student”; ‘result = Sconn->query($sq); if Gresult->num_rows > 0) { while($row = Sresult-fetch_assoc)) { ‘echo "i: *. $row{'i"]. *- Name: . $row frsiname"].** Srow["iastname"). "
"; > pelse( ‘echo “0 results"; » Sconn->close(); » connect error) ( ‘ie("Connecton failed: ". Sconn->connect_ ero); 5 $sql = “SELECT * FROM tbl student’ i al $result = Sconn->query(Ssa; it Srosuit-snum_rows > 0) { whilo(Srow = Srosult->fetch_rows_assoc()) ( ‘echo “id: ". Srow{ "id". * Name: *. $row( firstname"). **. $rowf'iastname’). “ebr>"; dese connect_error) ( ddio(*Connection failed: * . $conn->connect_orror); > $sql = "SELECT * FROM tbl student’; Sresult = Scona->query($sqj): if (Sresutt-snum_rows > 0) ( whilo(Srow = Sresultfetch_assoc()) { echo "id: * . $row"). * Name: * . Srow"frstname").** Sromflastname'). “ebr>"; DANG ASP.NET MVC project yisinip: State Exam't n.igphyigigneuiney web page yuutiinuansénnia WAD state exam Bags faniifitns ASP.NET MVC Appkoation (5p) ASP.NET MVC application 2. porsuiqtullgjuine web page yurtiruneGnatnélA WAD slate exam BAguant fifiin1s ASP.NET MVC Application(Spt)7 A tfjigy State Exam project noxndnyfgnAiinal subject or subjecuD, SubjactName, Abbreviation fit WAD database ifulguainginf: (Sp0? ws. mannan ciassos iffy Stale Exam project nagndinfiynaiifunsl Subject JOM SubjectD, SubjoctName, Abbreviation 1]! WAD database (Spt) 18. 9 State Exam project tdtjjumps data fl controller il view snsumLmniganGs ViewData? iTwsinsunmIRIK ViewBag (tpt)? A Gaijungju PHP Ba ASP.net MVC (top? “1 Approved by a ‘Thou Chamroeun .... ost a fable es acqusmnaaty. ae TEN, Mr. Chi Kuong Chim Bunthoeur «Jes. ow 1) e MS DBMS amywitinBsuis native PHP extension 2) {. fatal error 84 g. Termination of script 3) |. GET 4) 4. Cookie GngSwWeLsh Text fle tsiti8 Client SinnA session Fogngswishict 2B Server 5) r. MARR yAiANUMUIGIMs Database 8h Me gswunuing Code php $con=new mysqli(“localhost:3306", "root "backend" ); if( $con->connect_error) die( "can't connect to backend database”.$con->connect_error); else{ $select="SELECT * FROM technology’; Srows=$con->query( $select); if( $rows->num_rows>0) while ( Srow=Srows->fetch_assoc( ) ) echo"Tech Number:".$row[*Tech_Num*]."Tech Name" Srow["Tech_Name"]."
"; else echo"No tech is available in the technology table"; } $con->close( ); 2> 6) f. sigjuing Web Page ywiimensdankitin WAD state exam SASvAN GANS ASP.NET MVC Application {Aii[8 Controller AUENUEEI request 84 View tuum Use 8. FUTIAN M web page 7 ao ViewBag.Title = "WAD state exam", Layout = "~Miews/Shared/_index.cshtm!*; } -ASP.NET Application A. sflujay state Exam project inoan San Simasdawisil subject Horn SubjectlD, SubjectName, Abbreviation 94 WAD database tatuige Entity Framework 8iusfin Model w) public class StateExam public int SubjectID{ get; set; } [Required] public string SubjectName { get; set: } public string Abbreviation { get; set; } } public class BEdb : DbContext { public DbSet technologies { get; set; } } } b. sAyjugs data fi controller 1¢1 view {Ait{{ ViewData tslinsuitiry data th dictionary property thw sunita ViewData ch dictionary object $hch property is controller base class Shipti[f ViewBag tstinqviicy data th dynamic property sid] uta] PHP 8&4 ASP.NET PHP ASP.NET © AAAIGIAU Web Applications vt Web Application Framework (Open Source Technology {Uf Microsoft nwipuOUs Shiau ¥ wsnutimnge Ssoyenvethim Desktop Applications v fimaghandi)s apne Beginner sgeii08 User Interfaces aoyphud agfimn Shyeinr tupndurfia Web famséut ¥ RENGUIEE Applications Hey quisivgyy wsiul uA gryatnintima wseulfimnger anwehgw HTML ura anwehyw HTML igjuifia he 4 # Dynamic Server Side thes Dynamic Server-side Web Page MVC Pattern 1 Scripting language run & AGI Desktop Applications f Server Side iihmnnj)s SidthimitcBia Internet Hosting Server MSAIBIONA Information ¥ Server (IIS) NWIFYNUT]SI[MZNS Syntax YO CCH ¥ Mantioswneantfymes cH Y VB.net snobithimmasisc® windows OS and Linux OS Ascthimitatsitct windows os Database [M143 Mysql Database i{fi{M4al SQL Server

You might also like