Originally posted by k994519
the table structure is
Student
student_ID pk int not nulll
first_name, varchar
last_name varchar
faulty_id int
course_code int
current_level int
date_started date
group_id int
module_id int
module_id2 int
module_id3 int
module_id4 int
module_id5 int
module_id6 int
module_id7 int
module_id8 int
table modules
module_id pk int
level int
description varchar
these are the main tables used for code earlier submited
should do somthing like this first then change the fields later
Host: localhost
Database: test
Table: 'student'
CREATE TABLE student (
student_ID int(10) NOT NULL auto_increment,
first_name text NOT NULL,
last_name text NOT NULL,
faulty_id text NOT NULL,
course_code text NOT NULL,
current_level text NOT NULL,
date_started text NOT NULL,
group_id text NOT NULL,
module_id text NOT NULL,
module_id2 text NOT NULL,
module_id3 text NOT NULL,
module_id4 text NOT NULL,
module_id5 text NOT NULL,
module_id6 text NOT NULL,
module_id7 text NOT NULL,
module_id8 text NOT NULL,
PRIMARY KEY (student_ID)
) TYPE=MyISAM;