PHP Classes

File: script.sql

Recommend this page to a friend!
  Classes of Federico Larsen   mysurvey   script.sql   Download  
File: script.sql
Role: Configuration script
Content type: text/plain
Description: mysql script to create the structure
Class: mysurvey
A class to make php mysql based surveys(encuestas)
Author: By
Last change:
Date: 21 years ago
Size: 2,416 bytes
 

Contents

Class file image Download
# phpMyAdmin MySQL-Dump
# version 2.2.3
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: Feb 25, 2003 at 08:30 AM
# Server version: 3.23.49
# PHP Version: 4.1.2
# Database : `Necochea_SITI`
# --------------------------------------------------------

#
# Table structure for table `appt_encuestas`
#

CREATE TABLE appt_encuestas (
  id_enc int(11) NOT NULL auto_increment,
  pregunta varchar(100) NOT NULL default '',
  fecha_ini datetime NOT NULL default '0000-00-00 00:00:00',
  fecha_fin datetime NOT NULL default '0000-00-00 00:00:00',
  orden int(11) NOT NULL default '0',
  PRIMARY KEY (id_enc)
) TYPE=MyISAM;

#
# Dumping data for table `appt_encuestas`
#

INSERT INTO appt_encuestas VALUES (1, '¿Que te gusta más de Necochea?', '2003-01-21 09:12:26', '2003-03-21 09:12:26', 0);
# --------------------------------------------------------

#
# Table structure for table `appt_opciones_x_encuesta`
#

CREATE TABLE appt_opciones_x_encuesta (
  id_op int(11) NOT NULL auto_increment,
  id_enc int(11) NOT NULL default '0',
  opcion varchar(100) NOT NULL default '',
  orden int(11) NOT NULL default '0',
  PRIMARY KEY (id_op)
) TYPE=MyISAM;

#
# Dumping data for table `appt_opciones_x_encuesta`
#

INSERT INTO appt_opciones_x_encuesta VALUES (1, 1, 'La playa', 0);
INSERT INTO appt_opciones_x_encuesta VALUES (2, 1, 'El parque', 2);
INSERT INTO appt_opciones_x_encuesta VALUES (3, 1, 'La tranquilidad', 3);
# --------------------------------------------------------

#
# Table structure for table `appt_votos_x_encuesta`
#

CREATE TABLE appt_votos_x_encuesta (
  id_voto int(11) NOT NULL auto_increment,
  id_enc int(11) NOT NULL default '0',
  id_op int(11) NOT NULL default '0',
  fecha date NOT NULL default '0000-00-00',
  ip varchar(20) default NULL,
  PRIMARY KEY (id_voto)
) TYPE=MyISAM;

#
# Dumping data for table `appt_votos_x_encuesta`
#

INSERT INTO appt_votos_x_encuesta VALUES (1, 1, 1, '2003-02-24', '192.168.0.2');
INSERT INTO appt_votos_x_encuesta VALUES (2, 1, 1, '2003-02-24', '192.168.0.3');
INSERT INTO appt_votos_x_encuesta VALUES (3, 1, 3, '2003-02-24', '192.168.0.20');
INSERT INTO appt_votos_x_encuesta VALUES (4, 1, 1, '2003-02-25', '192.168.0.20');
INSERT INTO appt_votos_x_encuesta VALUES (5, 1, 3, '2003-02-25', '192.168.1.2');