voilà je voulais juste vous dire je refais ma table sql pour voir si c'ést possible de faire
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 il faus surement rajouté un champ pour que le vote et le téléchargement fonctionne
je sais que c'est possible vue que le commentaire marche donc y as pas de raison que les autres ne fonctionne pas