Problème Code PHP

Fermé
Amandine - Modifié par Amandine le 17/01/2013 à 09:46
SkRo91 Messages postés 135 Date d'inscription mercredi 6 juin 2012 Statut Membre Dernière intervention 28 janvier 2013 - 17 janv. 2013 à 11:22
Bonjour,

Les loulous!, je fais appel à tous les douer du web, j'ai pour mon travail coder des pages php, une partie session, une partie identification, tout fonctionne à merveille, maintenant je cherche un moyen, une astuce (un code php) qui me permettrait d'inscrire des données dans une page, par le billet d'un formulaire.

Ma page se présente sous forme de tableau, qui constitue une liste de personnes, nom, prénom, adresse etc. J'ai mis en place un formulaire et j'aimerais pourvoir inscrire les données de celui si dans la page concernée.

Voilà comment se présente mon formulaire qui est situé dans la même page ou la liste d'utilisateur doit être.


<!-- ================= Module Enregistrement =============== -->
<br />
<legend> Enregistrement Client:</legend>
<br />
N°client : <input class="input-mini" type="text">
<p>
FTP / Host : <input type="text" placeholder="Text input">
<p>
Login : <input class="input-small" type="text" >
<p>
Password : <input type="text" placeholder="Text input">
<p>
Email : <input type="text" placeholder="Text input">
<!-- ================= Module Enregistrement ============= -->


Voilà ce que doit être inscris sur ma page, quand j'ajoute un utilisateur à mon tableau en manuelle:

                <tr>
                  <td>39</td>
                  <td><b>Larry</b></td>
                  <td>the Bird</td>
                  <td><font color="red">@twitter</font></td>
                  <td><font color="blue">@mdo</font></td>
                </tr>     




Merci pour votre aide
Amandine
A voir également:

1 réponse

SkRo91 Messages postés 135 Date d'inscription mercredi 6 juin 2012 Statut Membre Dernière intervention 28 janvier 2013 39
17 janv. 2013 à 09:54
Salut,

Si j'ai bien compris ton problème tu devrais faire en sorte que ton formulaire execute une requete INSERT et que dans ton tableau tu execute une requete SELECT pour interroger ta base et afficher la liste dans ton tableau.

SkRo
0
Et comment puis-je faire

voila le tableau en question:


<legend>  Liste Client :</legend>
<table class="table table-striped">
<thead>
<tr>
<th><img src="img/icone/glyphicons_065_tag.png"> N°client</th>
<th><img src="img/icone/glyphicons_340_globe.png"> FTP / Host</th>
<th><img src="img/icone/glyphicons_001_leaf.png"> Login</th>
<th><img src="img/icone/glyphicons_203_lock.png"> <font color="red">Mot de Passe</font></th>
<th><img src="img/icone/glyphicons_419_e-mail.png"> <font color="blue">Email</font></th>
</tr>
</thead>
<tbody>

<tr>
<td>1</td>
<td><b>Mark</b></td> <!-- <input type="text" placeholder="Text input"> -->
<td>Otto</td>
<td><font color="red">@mdo</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>2</td>
<td><b>Jacob</b></td>
<td>Thornton</td>
<td><font color="red">@fat</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>3</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>4</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td><b>5</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>6</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>7</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>8</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>9</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td><img src="img/icone/glyphicons_345_hand_right.png"> <b>10</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>11</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>12</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>13</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>14</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td><b> 15</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>16</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>

<tr>
<td>17</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>

<tr>
<td>19</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td><img src="img/icone/glyphicons_345_hand_right.png"> <b>20</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>21</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>22</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>23</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>24</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td><b>25</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>26</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>27</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>28</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>29</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td><img src="img/icone/glyphicons_345_hand_right.png"> <b>30</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>31</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>32</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>33</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>34</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td><b>35</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>



<tr>
<td>36</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td>37</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>




<tr>
<td>38</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>



<tr>
<td>39</td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>


<tr>
<td><img src="img/icone/glyphicons_345_hand_right.png"> <b>40</b></td>
<td><b>Larry</b></td>
<td>the Bird</td>
<td><font color="red">@twitter</font></td>
<td><font color="blue">@mdo</font></td>
</tr>



</tbody>
</table>
<!-- ========================= / Tableau Centrale ========================= -->
0
SkRo91 Messages postés 135 Date d'inscription mercredi 6 juin 2012 Statut Membre Dernière intervention 28 janvier 2013 39
17 janv. 2013 à 10:18
Le problème est qu'il faut que tu créer une base en SQL =/
0
Oui ah mais ça je ne sais pas trop faire,
(je code un peu je ne suis pas du tout dans le métier, je le fais pour mon travail de secrétaire)

comment puis-je procédé dans ce qu'as là ?
0
SkRo91 Messages postés 135 Date d'inscription mercredi 6 juin 2012 Statut Membre Dernière intervention 28 janvier 2013 39
17 janv. 2013 à 10:26
Ba le mieux(et peut-etre le seul moyen d'aprés ce que j'ai compris)
serait que ton utilisateur par exemple remplisse un formulaire, il sera inscrit dans une base de données puis s'il va sur la page avec le tableau en question, s'afficheront tout les personnes figurant dans la table
0
oui, mais dans ce principe il faut que chaques utilisateurs créer un compte, hors je n'ai pas besoin de cela, puisque je veux une seule personne à gérer ce panel et que lui seule voie toute la liste.

car, c'est l'admin qui va rajouter dans le panel personne d'autre.
0