Emploi du temps
timzahra
Messages postés
1
Date d'inscription
Statut
Membre
Dernière intervention
-
timzahra -
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
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
A voir également:
- Emploi du temps
- Mode d'emploi - Guide
- Renommer plusieurs fichiers en même temps - Guide
- Chromecast mode d'emploi - Guide
- Temps pour soi iphone - Guide
- Combien de temps reste une story sur facebook - Guide