- (ERD), .
ERD , .
:
Polls: ( )
pollid integer(4) ()
pollname varchar(40) ( )
question varchar(200) ( )
Options: ( )
pollid integer(4) ( )
option varchar(80) ( )
votes integer(4) ( )
Comments: ( )
pollid integer(4) ( )
comment text ( )
, .
. SQL .
:
( )
,
:
,
. , Oracle, MySQL, PostgreSQL, Sybase.
( ) . , (, ).
- , .
, :
..
. , , .
Polls , , , , , . .
, , , -, , , .
|
|
, , . HTML CSS, Flash, , .
:
. 2.
. , .
. ( ). :
. , : , , , , . .
(, ). (. 1 ):
1. ,
createPoll($question) | , pollid |
getCurrentPolK) | pollid |
getOptions($pollid) | pollid optionid |
getOptionName($optionid) | optionid |
getOptionVotes($optionid) | optionid , |
addVote($optionid) | , |
addOption($pollid,$name) | |
removePoll($pollid) | |
removeOption($optionid) | |
setCurrent($pollid) |
(, Poll_Data), DB ( ) .
, . , , .
(, MySQL PostgreSQL) PostgreSQL DB. Poll_Data .
: