Précédent   Forum des professionnels en informatique > Bases de données > MySQL > Administration
Administration Forum d'entraide sur l'administration de MySQL
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 02/02/2007, 11h14   #1
Invité de passage
 
Inscription : janvier 2007
Messages : 9
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 9
Points : 1
Points : 1
Par défaut Suppression des lettres après un espace

Bonjour @ tous,
j'ai un problème récurrent avec ma bdd... Lorsque que j'entre un nom ou un nom de service avec un espace, la bdd n'enregistre que la première partie (avant le premier espace)... Comment puis-je faire pour qu'elle enregistre bien TOUT le nom???
Sanka76 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 02/02/2007, 13h20   #2
Membre Expert
 
Avatar de Adjanakis
 
Inscription : avril 2004
Messages : 734
Détails du profil
Informations personnelles :
Localisation : France, Pas de Calais (Nord Pas de Calais)

Informations forums :
Inscription : avril 2004
Messages : 734
Points : 1 281
Points : 1 281
Bonjour,

Peut-on avoir un exemple de requête INSERT et le script SQL de création de la table ? C'est bizarre que seule la première partie ne passe...
__________________
Pensez au tag
Adjanakis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 02/02/2007, 14h27   #3
Invité de passage
 
Inscription : janvier 2007
Messages : 9
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 9
Points : 1
Points : 1
euh alors c'est un peu long... je vais essayer de ne rien mettre d'inutil...

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
 
echo"<table width='0%' cellpadding='5' cellspacing='0' border='0' align='center' bgcolor='#FFFFFF'>
             <form name='recherche' action='index.php?task=2' method='post'>
               <tr>
                 <td colspan='2' align='center'><h2>Rechercher</h2></td>
               </tr>
               <tr>
                 <td align='right'>Nom</td>
                 <td><input type='text' name='nom'></td>
               </tr>
               <tr>
                 <td align='right'>Prénom</td>
                 <td><input type='text' name='prenom'></td>
               </tr>
               <tr>
                 <td align='right'>Service</td>
             <td><select name='service'>
                    <option value=''>Choisir le service
                    <option value='Direction'>Direction
                    <option value='Accueil'>Accueil    
                    <option value='Ressources Humaines'>Ressources Humaines
                    <option value='Comptabilité'>Comptabilité
                    <option value='Informatique'>Informatique
                    <option value='Administration Des Ventes'> Administration Des Ventes
                    <option value='ADV - RHF'>ADV - RHF
                    <option value='ADV - Marée'>ADV - Marée
                    <option value='ADV - LS/Export'>ADV - LS/Export
                    <option value='ADV - Projet'>ADV - Projet
                    <option value='Transport'>Transport
                    <option value='Bord A Quai'>Bord A Quai
                    <option value='Liogel'>Liogel
                    <option value='Local Linge Propre'>Local Linge Propre
                    <option value='Infirmerie'>Infirmerie
                    <option value='Prod - Direction Usine'>Prod - Direction Usine
                    <option value='Prod - Assistante Gestion Production'>Prod - Assistante Gestion Production
                    <option value='Prod - Elaboration'>Prod - Elaboration
                    <option value='Prod - Fabrication'>Prod - Fabrication
                    <option value='Prod - Conditionnement'>Prod - Conditionnement
                    <option value='Ordonnancement'>Ordonnancement
                    <option value='Maintenance'>Maintenance
                    <option value='Responsable Magasins - Expé Frais'>Responsable Magasins - Expé Frais
                    <option value='Responsable Magasins - Expé Surgelé'>Responsable Magasins - Expé Surgelé
                    <option value='Responsable Magasins - Réception Emballage-Chapelure'>Responsable Magasins - Réception Emballage-Chapelure
                    <option value='Responsable Magasins - Logistique'>Responsable Magasins - Logistique
                    <option value='Responsable Magasins - Réception Mat. Premières'>Responsable Magasins - Réception Mat. Premières
                    <option value='Qualité'>Qualité
                    <option value='R et D'>R et D
                    <option value='Achats Poissons, Légumes, Emballages'>Achats Poissons, Légumes, Emballages
                 </select>
             </td>
               <tr>
                 <td align='right'>Poste</td>
                 <td><input type='text' name='poste'></td>
               </tr>
               <tr>
                 <td align='right'>Sans Fil</td>
                 <td><input type='text' name='sansfil'></td>
               </tr>
               <tr>
                 <td align='right'>Ligne Directe</td>
                 <td><input type='text' name='lignedirecte'></td>
               </tr>
               <tr>
                 <td align='right'>Portable</td>
                 <td><input type='text' name='portable'></td>
               </tr>
               <tr>
                 <td align='right'>Fax</td>
                 <td><input type='text' name='fax'></td>
               </tr>
               <tr>
                 <td align='right'>Tèl Perso</td>
                 <td><input type='text' name='telperso'></td>
               </tr>
               <tr>
                 <td>&nbsp;</td>
                 <td><input type='submit' name='op2' value='Rechercher'></td>
               </tr>
             </form>
           </table>";
Voila voila! Alors ça c'est pour la recherche, mais l'ajout de contact c'est la même chose...

Pour info on parle ici d'un annuaire interne d'entreprise...
Sanka76 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 02/02/2007, 16h17   #4
Membre Expert
 
Avatar de Adjanakis
 
Inscription : avril 2004
Messages : 734
Détails du profil
Informations personnelles :
Localisation : France, Pas de Calais (Nord Pas de Calais)

Informations forums :
Inscription : avril 2004
Messages : 734
Points : 1 281
Points : 1 281
ok, mais à quoi ressemble la requête SQL qui est effectuée ?
__________________
Pensez au tag
Adjanakis est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 01h45.


 
 
 
 
Partenaires

Hébergement Web