Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Building dynamic WML sites
Preparing to work
If you use Microsoft OS, you can install the NOKIA Development Kit. It checks for your syntax and lets you preview your WML pages with a phone-like user interface. Moreover, the kit comes equipped with useful documentation about WML and WMLScript. This helps if you don't have a mobile phone with WAP support, or if you can't use a WAP gateway.
To download it, you have first to register as a wap developer. Remember that you need the Java2 Runtime Enviroment. However, any text editor is fine for writing your pages.
Before writing any PHP/WML code, you need to set up your MySQL tables.
The database is structured in 4 tables.
  1. table professors contains data about professors
  2. table subjects contains data about subjects
  3. table exams contains data about exams
  4. table teach contains the relations between the professors and their subjects
Write the code below after establishing a MySQL connection.
CREATE TABLE professors (
	Id int(11) DEFAULT '0' NOT NULL auto_increment,
	Surname varchar(24) NOT NULL,
	Name varchar(24) NOT NULL,
	Email varchar(48) DEFAULT 'Not avaliable',
	Cod_course varchar(16) DEFAULT 'Not avaliable',
	Consulting_hour varchar(128) DEFAULT 'Not avaliable', 
	Consulting_place varchar(128) DEFAULT 'Not avaliable',
	PRIMARY KEY (Id)
);
These lines specifiy the structure of table professors. Id is the field for associating an unique identifier with each professor and is the key of the table. The other fields, Surname, Name, Email specifies the surname, the name and the e-mail address for each professor. Cod_course assumes unique values identifying the subjects. Finally, Consulting_hour and Consulting_place specify the receiving time and the place for receiving.
CREATE TABLE subjects (
	Subject varchar(96) NOT NULL,
	Cod_Subject varchar(24) NOT NULL,
	Cod_number varchar(12) NOT NULL,
	PRIMARY KEY (Cod_subject )
); 
Subject is the name of the subject, Cod_subject is the field containing the unique name adopted by the University for the subject and is the key of the table. Cod_number is a numeric field containing a number grouping different courses on the same subject.
CREATE TABLE exams (
	Cod_Subject varchar(24) NOT NULL,
    Id int(11) NOT NULL,
    Date date DEFAULT '0000-00-00',
    Time time DEFAULT '00:00:00',
    Room varchar(64),
    Test varchar(16) DEFAULT 'Oral'
); 
Cod_subject again contains the unique name adopted by the University for the subject,Id is the unique identifier for the professors, Date, Time, and Room, record the date, the time and the place where exams will take place; Test is for the type of the exam (written, oral, or anything else).
CREATE TABLE teach (
	Cod_Subject varchar(16) NOT NULL,
	Id int(11) DEFAULT '0' NOT NULL,
	PRIMARY KEY (Id, Cod_subject )
); 
In table teach the two fields form the key and are necessary to know who is teaching what.
The next step is filling the database with some data, which you can do by yourself.
[ Next Page ]

[Page 1]  [Page 2]  


Comments:
help...starting out on waphuggins02/07/05 05:28
help mehuggins02/04/05 05:53
online emulator VS Mobilephonegottaged12/09/04 11:48
AyudaNathali12/07/04 15:59
mysql and wml questionsylvie11/26/04 05:41
getting php to work with wml on apache2michael09/01/04 09:42
free free freesalahuddin saeed03/09/03 14:18
RE: Help !!! WML with PHP doesen't workkevin11/26/02 21:27
RE: vars in wmlSpencer10/01/02 23:07
To make all this simpler:skynet09/29/02 19:28
Construction TechnologyNyengule Dumisa09/17/02 15:41
RE: HELP MERick09/09/02 07:54
RE: HELP MERick09/06/02 16:17
RE: HELP MERick09/06/02 13:15
RE: HELP MERick09/06/02 12:52
Nokia phones & PHP + WMLMLS08/27/02 08:19
RE: HELP MEMonkey Harris08/01/02 10:56
RE: <postfield> tagMelkor06/24/02 22:37
This guy is a jerkMelkor06/24/02 22:11
WML error: not well-formedgiuseppissimo06/15/02 06:35
WAP works without gateway, errors with Alberto04/22/02 14:35
.pwml and .wmlfred04/09/02 13:17
Help !!! WML with PHP doesen't workMonica04/08/02 12:59
vars in wmlRichard D. Williams03/11/02 15:56
the real setup of wml sitemadjed03/04/02 09:56
trouble in compilation of your exemplemadjed02/25/02 05:50
Congratulations for all!!!!Pepe02/22/02 18:26
.htaccess creationGarthfield Carter02/15/02 05:42
RE: WAP kit for LINUXabubaker mohammed02/12/02 12:36
How to Use nokia tool kit dll in .Net compactManjusha02/05/02 02:14
RE: HELP MEpofo01/31/02 09:09
HELP MEaasim01/25/02 17:44
NEW .htaccess configurationAndres01/21/02 05:57
Chat pageMuzz01/16/02 17:53
Simple wm/php/mysql retrieval neededTom Hicks01/09/02 09:49
RE: Nokia tool kit and PHP?{Greenster}12/05/01 12:33
help: invalid element{Greenster}12/05/01 12:33
help: invalid element{Greenster}12/05/01 12:32
help: invalid element{Greenster}12/05/01 12:32
mysql INSERT statement with wmljanis10/25/01 23:28
How to upload picture to MsAccess97 databasejacky10/18/01 00:39
<postfield> tagFrank09/26/01 19:56
RE: Nokia tool kit and PHP?Laurent09/06/01 04:59
Nokia tool kit and PHP?Josué Marchiani08/13/01 12:18
HElp!!....Loris08/12/01 23:30
commentaire 1badra08/10/01 14:34
question:user input and file extensionfamada07/02/01 14:46
I find what I am eager to getGang Zhan06/17/01 18:01
My wap work aroundErv06/08/01 11:17
RE: What means 'Pragma'???gary mailer05/23/01 15:50
RE: What means 'Pragma'???gary mailer05/23/01 15:49
mimetypesPeter05/16/01 19:45
mimetypesPeter05/16/01 10:09
What means 'Pragma'???Roman Locher04/20/01 11:01
RE: mysql insert statements with wmlpeterg04/17/01 04:43
Wap without MYSQL??brad04/13/01 14:44
RE: Can I have WML without WAP gateway?Hasnain Zafar Baloch04/04/01 05:55
mysql insert statements with wmlbren03/27/01 15:26
Unable to run query.wmlsandeep k mundra03/27/01 02:56
RE: Can I have WML without WAP gateway?Andres03/24/01 05:37
RE: .htaccess questionAndres03/24/01 05:37
RE: PLEASE HELPAndres03/24/01 05:25
PLEASE HELPJesse Lee03/21/01 12:08
.htaccess questionJesse lee03/21/01 11:27
interesting application of WAP!Sameer Verma03/13/01 04:21
Can I have WML without WAP gateway?Bingo03/01/01 05:22
offline vs. online database access?gromit02/28/01 06:25
RE: WAP kit for LINUXShanx02/24/01 22:20
Web based WAP BrowserWayne Abbott02/22/01 09:14
RE: WAP kit for LINUXTom Anderson02/22/01 08:53
RE: WAP kit for LINUXManuel Durán Aguete02/22/01 08:25
WAP kit for LINUXdinny02/21/01 23:48
WAP KITharvail02/21/01 20:01
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.