Bonsoir à tous,
j'ai essayer de l'aide sur le sujet récemment posté avant d'ouvrir le miens mais rien n'a faire.
Je vous explique mon but.
Je veux faire un commerce, j'ai déjà réussi a faire la vente afficher le résultat des vente, cependant j'arrive pas à faire l'achat j'arrive pas à me servir des checkbox dans ce cas là.
J’obtiens cette erreur :
Warning: addslashes() expects parameter 1 to be string, array given in /home/qkmkhwcf/public_html/testbis/fonctions.php on line 4
Voici mon code :
Code page d affichage : Sélectionner tout - Visualiser dans une fenêtre à part
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 echo " <form method='post' action='acheterressources.php' enctype='multipart/form-data'>"; while($data=mysql_fetch_assoc($requetes)) { echo " <table summary='Vente de ressource par Etat'> <tbody> <tr> <td id='ff2' headers='nav' scope='col'style=' width: 2px; height: 10px; background-color: #4B7CAC' ; ><input align='center' id='' type='checkbox' name='coche[]' value='1'; /></td> <td id='ff2' headers='nav' scope='col'style=' width: 124px; height: 10px; background-color: #4B7CAC;' >{$data["id_vente"]}</td> <td id='ff2' headers='nav' scope='col'style=' width: 150px; height: 10px; background-color: #4B7CAC;'>{$data["Quantite"]}</td> <td id='ff2' headers='nav' scope='col'style=' width: 150px; height: 10px; background-color: #4B7CAC;'>{$data["id_ressource"]}</td> <td id='ff2' headers='nav' scope='col'style=' width: 149px; height: 10px; background-color: #4B7CAC;'>{$data["prix"]}</td> <td id='ff2' headers='nav' scope='col'style=' width: 149px; height: 10px; background-color: #4B7CAC;'>{$data["voulu"]}</td> </tr> </table> ";} echo"<input align='center' id='' name='ok' type='submit' value='acheter' /></form>";
Voilà je vous remercie d'avance.
Partager