par
docdamien93 » 18 avr. 2011, 12:15
Bonjour,
ta modification ne fait aucun effet. je comprends rien!! je ne vois pas "pas ID" donc il est bien accepté par la requête mais elle ne retourne quand même aucun résultat
Le problème serait-il lié à ma table MySQL? Dans le doute, je vous en poste un extrait.
CREATE TABLE IF NOT EXISTS `jeu` (
`jeu_ID` mediumint(9) NOT NULL AUTO_INCREMENT,
`jeu_nom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`jeu_but` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`jeu_trucs` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`jeu_categorie` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'course',
`jeu_adresseabs` varchar(250) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`jeu_views` int(11) NOT NULL DEFAULT '1',
`jeu_star` varchar(1) COLLATE utf8_swedish_ci NOT NULL DEFAULT '0',
`jeu_votes` int(11) NOT NULL DEFAULT '1',
`jeu_redac` int(1) NOT NULL,
UNIQUE KEY `jeu_ID` (`jeu_ID`),
UNIQUE KEY `jeu_adresseabs` (`jeu_adresseabs`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci AUTO_INCREMENT=105 ;
et voici un extrait de données:
INSERT INTO `jeu` (`jeu_ID`, `jeu_nom`, `jeu_but`, `jeu_trucs`, `jeu_categorie`, `jeu_adresseabs`, `jeu_views`, `jeu_star`, `jeu_votes`, `jeu_redac`) VALUES
(100, 'Apprendre à Voler!', 'Apprends au pingouin à voler! Pour cela, achète lui un deltaplane, des réacteurs et autres ;)', 'Utilise les flèches de direction gauche et droite pour ajuster l''angle de vol', 'sport', '/swf/voler.swf', 1655, '1', 1, 0),
Merci pour votre aide par avance,
Damien
Bonjour,
ta modification ne fait aucun effet. je comprends rien!! je ne vois pas "pas ID" donc il est bien accepté par la requête mais elle ne retourne quand même aucun résultat :|
Le problème serait-il lié à ma table MySQL? Dans le doute, je vous en poste un extrait.
[sql]CREATE TABLE IF NOT EXISTS `jeu` (
`jeu_ID` mediumint(9) NOT NULL AUTO_INCREMENT,
`jeu_nom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`jeu_but` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`jeu_trucs` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`jeu_categorie` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'course',
`jeu_adresseabs` varchar(250) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`jeu_views` int(11) NOT NULL DEFAULT '1',
`jeu_star` varchar(1) COLLATE utf8_swedish_ci NOT NULL DEFAULT '0',
`jeu_votes` int(11) NOT NULL DEFAULT '1',
`jeu_redac` int(1) NOT NULL,
UNIQUE KEY `jeu_ID` (`jeu_ID`),
UNIQUE KEY `jeu_adresseabs` (`jeu_adresseabs`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci AUTO_INCREMENT=105 ;[/sql]
et voici un extrait de données:
[sql]INSERT INTO `jeu` (`jeu_ID`, `jeu_nom`, `jeu_but`, `jeu_trucs`, `jeu_categorie`, `jeu_adresseabs`, `jeu_views`, `jeu_star`, `jeu_votes`, `jeu_redac`) VALUES
(100, 'Apprendre à Voler!', 'Apprends au pingouin à voler! Pour cela, achète lui un deltaplane, des réacteurs et autres ;)', 'Utilise les flèches de direction gauche et droite pour ajuster l''angle de vol', 'sport', '/swf/voler.swf', 1655, '1', 1, 0),[/sql]
Merci pour votre aide par avance,
Damien