Se connecter avec
S'enregistrer | Connectez-vous

table sql

Dernière réponse : dans Programmation

bonjour ou bonsoir

voilà je voulais juste vous dire je refais ma table sql pour voir si c'ést possible de faire
comme je voulais

en faite j'ai réuissi a faire fonctioné le systeme vote et le commentaire
mais pas pour le lien télécharement

donc voilà la table que j'ai fais

Citation :

-- Structure de la table `commentaires`
--

CREATE TABLE `commentaires` (
`id` bigint(20) NOT NULL auto_increment,
`id_programme` bigint(20) NOT NULL,
`pseudo` varchar(255) collate latin1_general_ci NOT NULL,
`message` text collate latin1_general_ci NOT NULL,
`dateheure` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=3 ;

--
-- Contenu de la table `commentaires`
--

INSERT INTO `commentaires` VALUES (1, 1, 'votre pseudo', 'votre message', 1177714758);
INSERT INTO `commentaires` VALUES (2, 1, 'votre pseudo', 'votre message', 1177714778);

-- --------------------------------------------------------

--
-- Structure de la table `logiciels`
--

CREATE TABLE `logiciels` (
`id` bigint(20) NOT NULL auto_increment,
`fichier` varchar(255) collate latin1_general_ci NOT NULL,
`telechargements` int(10) NOT NULL default '0',
`vote_0` int(10) NOT NULL default '0',
`vote_1` int(10) NOT NULL default '0',
`vote_2` int(10) NOT NULL default '0',
`vote_3` int(10) NOT NULL default '0',
`vote_4` int(10) NOT NULL default '0',
`vote_5` int(10) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=50349 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=50349 ;

--
-- Contenu de la table `logiciels`
--

INSERT INTO `logiciels` VALUES (1, 'messenger-plus-live-4.20.262.rar', 0, 0, 0, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Structure de la table `news`
--

CREATE TABLE `news` (
`id` bigint(20) NOT NULL auto_increment,
`news` varchar(255) collate latin1_general_ci NOT NULL,
`commentaire` text collate latin1_general_ci NOT NULL,
`dateheure` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

--
-- Contenu de la table `news`
--


-- --------------------------------------------------------

--
-- Structure de la table `programmes`
--

CREATE TABLE `programmes` (
`id` bigint(20) NOT NULL auto_increment,
`fichier` varchar(255) collate latin1_general_ci NOT NULL,
`telechargements` int(10) NOT NULL default '0',
`vote_0` int(10) NOT NULL default '0',
`vote_1` int(10) NOT NULL default '0',
`vote_2` int(10) NOT NULL default '0',
`vote_3` int(10) NOT NULL default '0',
`vote_4` int(10) NOT NULL default '0',
`vote_5` int(10) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

--
-- Contenu de la table `programmes`
--



donc cette table il y as que le commentaire qui marche
donc il faus surement rajouté un champ pour que le vote et le téléchargement fonctionne

car j'ai voulu éssayé voir si je met dfes tables qui seront mes dossiers

qui auront pour id_programmes
je sais que c'est possible vue que le commentaire marche donc y as pas de raison que les autres ne fonctionne pas

donc si quelqu'un a trouvé le champs que j'ai oublié

merci d'avance

Autres pages sur : table sql

Lassé par la pub ? Créez un compte
Lassé par la pub ? Créez un compte
Tom's guide dans le monde