merci de ta réponse , mais il ya des trucs que je ne comprends pas :
exemple de ma table :
CREATE TABLE kpro_user (
uid int(11) unsigned NOT NULL auto_increment,
ugroup smallint(3) unsigned NOT NULL default ‘0’,
name varchar(50) NOT NULL default ‘’,
uname varchar(25) NOT NULL default ‘’,
email varchar(65) NOT NULL default ‘’,
url varchar(200) NOT NULL default ‘’,
user_avatar_pref varchar(255) NOT NULL default ‘’,
user_regdate int(11) unsigned NOT NULL default ‘0’,
user_sig text NOT NULL,
user_from varchar(75) NOT NULL default ‘’,
user_interests text NOT NULL,
user_birthday varchar(10) NOT NULL default ‘’,
pass varchar(35) NOT NULL default ‘’,
passtemp varchar(35) NOT NULL default ‘’,
posts mediumint(8) unsigned NOT NULL default ‘0’,
theme varchar(75) NOT NULL default ‘’,
last_login int(11) unsigned NOT NULL default ‘0’,
user_viewemail enum(‘yes’,‘no’) NOT NULL default ‘yes’,
user_canpn enum(‘yes’,‘no’) NOT NULL default ‘yes’,
invisible enum(‘yes’,‘no’) NOT NULL default ‘no’,
pntomail enum(‘yes’,‘no’) NOT NULL default ‘yes’,
status tinyint(1) unsigned NOT NULL default ‘1’,
user_lastonline int(11) unsigned default NULL,
user_lastonline_temp int(11) unsigned default NULL,
user_posts mediumint(8) unsigned NOT NULL default ‘0’,
user_lastpost int(10) unsigned default NULL,
recieve_newsletter tinyint(1) NOT NULL default ‘1’,
usedefault_avatar smallint(1) NOT NULL default ‘1’,
user_avatar varchar(255) NOT NULL default ‘’,
country char(2) NOT NULL default ‘DE’,
group_id_misc varchar(100) default NULL,
person enum(‘private’,‘company’) NOT NULL default ‘private’,
phone varchar(255) NOT NULL default ‘’,
phone_mobile varchar(255) NOT NULL default ‘’,
fax varchar(255) NOT NULL default ‘’,
lastname varchar(255) NOT NULL default ‘’,
zip varchar(255) NOT NULL default ‘’,
street varchar(255) NOT NULL default ‘’,
title varchar(20) NOT NULL default ‘’,
show_public tinyint(1) unsigned NOT NULL default ‘1’,
company varchar(255) NOT NULL default ‘’,
ustid varchar(255) NOT NULL default ‘’,
fsk18 tinyint(1) unsigned NOT NULL default ‘0’,
user_icq varchar(30) NOT NULL default ‘’,
user_aim varchar(30) NOT NULL default ‘’,
user_skype varchar(30) NOT NULL default ‘’,
PRIMARY KEY (uid),
KEY uid (uid),
KEY user_lastonline (user_lastonline),
KEY user_lastonline_temp (user_lastonline_temp),
KEY ugroup (ugroup),
KEY group_id_misc (group_id_misc),
KEY user_regdate (user_regdate)
) TYPE=MyISAM;
tu me dis par exemple pour les secteurs d’activité " id et description " mais pour les autres tables " id user et id secteur " pourquoi le id user ? Excuse mon ignorance mais je débute, je pense que tu avait compris…