.:: Buy.n.Sell

http://www.maplin.co.uk/images/Full/a99gz_logo.jpg
Inno3d GeForce FX5200 8x 128MB (AGP) with TV out

Php 1, 000.00 (4 months)

http://www.laptopkeyboards.org/images/FX52000.jpg
nVidia FX5200 8X 128MB (AGP) with TV and DVI out

Php 1, 200.00 (1 month)

http://www.inno3d.com/products/graphic_card/gf7_pcie/images/7200gs.jpg
GeForce 7 Series – 7200GS 256MB PCI-Expess with TV and DVI out
Php 1, 500.00 (8 months)

http://ph.hardwarezone.com/img/data/articles/2008/2592/Logitech_Speakers.jpg
1 Logitech S100 Speaker

Php 300.00 (Brand New)

http://www.techfuels.com/attachments/ram/2290d1213439017-dynet-256-mb-ddr-400-mhz-ram-dynet-256-mb-ddr-400-mhz-ram.jpg

2pcs. 256MB DDR 400 (1 Remaining)
Php 300.00/pc

1pc 1G Hynix PC400
Php 800.00

http://www.migsmobile.net/wp-content/uploads/2010/01/samsung-e1080.jpg
Samsung 1080

Php 500.00

.:: PC Package
Intel Celeron 2.66Ghz
2G Ram
80G HardDrive
17inches CRT (LG-Flatron)

Inno3d GeForce FX5200 8x 128MB (AGP) with TV out (Video Card)
Logitech S100 Speaker (Brand New)
KeyBoard, Mouse, and Computer Table

Php 10, 800.00 (Negotiable)

Web Eng - CS Number 8 Adding Record to Table

Deadline: February 08, 2010 / 9:30 a.m.

Filename: CS08xxx.php

For the Filename replace xxx with your ICON number, if not an ICON use 2010 instead.


Narrative:


create a database and tables using the following database and table specification:

CREATE TABLE IF NOT EXISTS `studentDB` (
  `deptID` tinyint(3) unsigned NOT NULL auto_increment,
  `deptDesc` varchar(30) NOT NULL,
  PRIMARY KEY  (`deptID`),
  UNIQUE KEY `deptDesc` (`deptDesc`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `stdprofile` (
  `stdID` int(10) unsigned NOT NULL auto_increment,
  `deptID` tinyint(3) unsigned NOT NULL,
  `first_name` varchar(20) NOT NULL,
  `last_name` varchar(40) NOT NULL,
  `email` varchar(60) NOT NULL, 
  PRIMARY KEY  (`stdID`),
  UNIQUE KEY `email` (`email`),
  KEY `deptID` (`deptID`),
  KEY `last_name` (`last_name`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;



insert the following records:

INSERT INTO `studentDB` (`deptID`, `deptDesc`) VALUES
(1, 'College of Business and Accountancy'),
(2, 'College of Computer Studies'),
(3, 'College of Education');

INSERT INTO `stdprofile` (`stdID`, `deptID`, `first_name`, `last_name`, `email`) VALUES
(1, 1, 'Eon', 'Elin', 'email1@gmail.com'),
(2, 1, 'Elin', 'Neon', 'email2@gmail.com'),
(3, 2, 'Elin', 'Ramirez', 'email3@gmail.com'),
(4, 2, 'Eon', 'Ramirez', 'email4@gmail.com'),
(5, 3, 'Beth', 'Ramirez', 'email5@gmail.com'),
(6, 3, 'Rongie', 'Macadangdang', 'email6@gmail.com'),
(7, 2, 'Kyle', 'Corpuz', 'email7@gmail.com'),
(8, 2, 'Kevin', 'Abraham', 'email8@gmail.com'),
(9, 1, 'Michael', 'Jordan', 'email9@gmail.com'),
(10, 2, 'Steve', 'Jobs', 'email10@gmail.com');


create a page that will allow user to insert new record(s) to table stdprofile, follow the sequential screen for reference:














screen 1 shall display a link to the adding engine of your php page
screen 2 displays inputs required to add a new student record
if the user clicks on the "return to main screen" link, the page will return to the main screen (screen 1)


screen 3 should the user failed to supply one or all the required input(s) the screen number 3 shall be activated, informing the user of the input(s) he/she forgot to fill up


screen 4 will only be activated if and only if the insertion/adding of new records were successful, otherwise screen 3 shall be invoked!

17 comments: