ok..facciamo finta ke io abbia
Codice PHP:
# phpMyAdmin SQL Dump
# version 2.5.3
# [url]http://www.phpmyadmin.net[/url]
#
# Host: localhost
# Generato il: 15 Giu, 2004 at 03:08 PM
# Versione MySQL: 4.0.15
# Versione PHP: 4.3.3
#
# Database : `negozio`
#
# --------------------------------------------------------
#
# Struttura della tabella `ditta`
#
CREATE TABLE `ditta` (
`id` int(11) NOT NULL auto_increment,
`nome` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=4 ;
#
# Struttura della tabella `fatture`
#
CREATE TABLE `fatture` (
`id` int(11) NOT NULL auto_increment,
`nfatt` text NOT NULL,
`articolo` text NOT NULL,
`desc` longtext NOT NULL,
`um` text NOT NULL,
`quant` double NOT NULL default '0',
`prezzo` double NOT NULL default '0',
`sconto` double NOT NULL default '0',
`importo` double NOT NULL default '0',
`aliquota` int(11) NOT NULL default '0',
`ditta` text NOT NULL,
`pagato` text NOT NULL,
`giorno` text NOT NULL,
`mese` text NOT NULL,
`anno` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=34 ;
#
# Struttura della tabella `incassi`
#
CREATE TABLE `incassi` (
`id` int(11) NOT NULL auto_increment,
`incasso` int(11) NOT NULL default '0',
`giorno` text NOT NULL,
`mese` text NOT NULL,
`anno` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=5 ;
#
# Struttura della tabella `note`
#
CREATE TABLE `note` (
`id` int(11) NOT NULL auto_increment,
`giorno` text NOT NULL,
`mese` text NOT NULL,
`anno` text NOT NULL,
`testo` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=7 ;
# --------------------------------------------------------
#
# Struttura della tabella `riepilogo`
#
CREATE TABLE `riepilogo` (
`id` int(11) NOT NULL auto_increment,
`nfatt` text NOT NULL,
`tq` double NOT NULL default '0',
`tim` double NOT NULL default '0',
`tiv` double NOT NULL default '0',
`tfa` double NOT NULL default '0',
`pagato` text NOT NULL,
`giorno` text NOT NULL,
`mese` text NOT NULL,
`anno` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=16 ;
# --------------------------------------------------------
#
# Struttura della tabella `um`
#
CREATE TABLE `um` (
`id` int(11) NOT NULL auto_increment,
`nome` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=6 ;
ma il database lo devo creare sempre cn phpmyadmin??