Emploi du temps

timzahra Messages postés 1 Date d'inscription   Statut Membre Dernière intervention   -  
 timzahra -
Bonjour,



j'ai un probeleme je veut inserer ce emploi de dans dant la base donne
voila le code
// emploi.php//


<table class="table responsive-table" id="sorting-advanced" width="700">

<thead>
<tr>

<th scope="col" width="20%" >Jour</th>
<th scope="col" width="40%" class="align-center hide-on-mobile">Matin</th>
<th scope="col" width="40%" class="align-center hide-on-mobile-portrait">Aprés Midi</th>
</tr>
</thead>

<tbody>

<tr>

<td>Lundi</td>
<td>
<input type="checkbox" name="ckm[]" value="lundimatin"/>
</td>
<td>
<input type="checkbox" name="cks[]" value="lundisoir"/>
</td>

</tr>
<tr>

<td>Mardi</td>
<td>
<input type="checkbox" name="ckm[]" value="mardimatin"/>
</td>
<td>
<input type="checkbox" name="cks[]" value="mardisoir"/>
</td>

</tr>
<tr>

<td>Mercredi</td>
<td>
<input type="checkbox" name="ckm[]" name="ckm" value="mercredimatin"/>
</td>
<td>
<input type="checkbox" name="cks[]" value="mercredisoir"/>
</td>

</tr>

<tr>

<td>Vendredi</td>
<td>
<input type="checkbox" name="ckm[]" value="vendredimatin"/>
</td>

<td>
<input type="checkbox" name="cks[]" value="vendredisoir"/>
</td>

</tr>
</tbody>

</table>
//emploiS.php//
if(isset($_POST['ckm']) && $_POST['cks'] ){
$ckm=$_POST['ckm'];
$cks=$_POST['cks'];

for($i=0; $i<sizeof($ckm);$i++){
for($j=0; $j<sizeof($cks);$j++){

$sq2=mysql("insert into disponibilité values('".$cks[$i]."',".$id.",'".$ckm[$j]."')");
}}}
merci :) de me repondre

2 réponses

nouveauweb.moi Messages postés 6 Date d'inscription   Statut Membre Dernière intervention  
 
j'ai pas vue de bouton pour envoier et y a un truc qui a 2fois name
0
timzahra
 
Ouii c deja fait Merci bcp :)
0