CODE
#
# Structure de la table `com`
#
CREATE TABLE com (
bnc_id int(30) NOT NULL auto_increment,
bnn_id int(15) NOT NULL default '0',
bnc_pseudo varchar(250) NOT NULL default '',
bnc_com longtext NOT NULL,
bnc_date datetime NOT NULL default '0000-00-00 00:00:00',
UNIQUE KEY bnc_id (bnc_id)
)
#
# Structure de la table `news`
#
CREATE TABLE news (
bnn_id int(15) NOT NULL auto_increment,
bnn_user varchar(250) NOT NULL default '',
bnn_titre varchar(250) NOT NULL default '',
bnn_intro longtext NOT NULL,
bnn_date datetime NOT NULL default '0000-00-00 00:00:00',
UNIQUE KEY bnn_id (bnn_id)
)
# Structure de la table `com`
#
CREATE TABLE com (
bnc_id int(30) NOT NULL auto_increment,
bnn_id int(15) NOT NULL default '0',
bnc_pseudo varchar(250) NOT NULL default '',
bnc_com longtext NOT NULL,
bnc_date datetime NOT NULL default '0000-00-00 00:00:00',
UNIQUE KEY bnc_id (bnc_id)
)
#
# Structure de la table `news`
#
CREATE TABLE news (
bnn_id int(15) NOT NULL auto_increment,
bnn_user varchar(250) NOT NULL default '',
bnn_titre varchar(250) NOT NULL default '',
bnn_intro longtext NOT NULL,
bnn_date datetime NOT NULL default '0000-00-00 00:00:00',
UNIQUE KEY bnn_id (bnn_id)
)
Donc le truc, c'est qu'il faudrait que j'affiche le nombre de commentaire pour la news correspondante... Quelqu'un peut m'aider, si oui, merci bcp...
Amicalement H2.