Search Tutorials
The application
What do we need to run the poll? Installation instructions can be found at www.webmonkey.com. MySQL TablesOk, now we will create the necessary tables.Please note that the field names are written in bosnian language and changing the field names to something else would confuse PHP. So, type the following SQL into your shell prompt (or use phpMyAdmin): create table anketa_pit( poll_id int not null auto_increment, pitanje text, primary key(poll_id) ); create table anketa_odg( poll_id int not null references anketa_pit, odg_id int not null auto_increment, odgovor text, hits int, primary key(odg_id) ); As you can see, only 2 tables are nedded. So, we’re finished with the database, let’s move on to other tasks.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|